Batch processing is the execution of a set of commands or software programs without user intervention. A batch file is a text file containing a sequence of such commands or programs invocations. Please use the tag [batch-file] for that.

learn more… | top users | synonyms

1
vote
1answer
67 views

Batch substitute for wifi on/off toggle win 8.1pro - automate hosted network

I'm using netsh to enable an hostednetwork AP and it works fine, but i wanted to make a step forward and try to query and enable the wifi adapter. Then the problem - if wifi toggle is switched off it ...
5
votes
1answer
119 views

Writing to file with 'find' command in a batch script

I need a batch script for windows that does the following: dumps all the filenames from a directory to a .txt file (usually several hundred up to 50ish thousands of files) searches the output ...
1
vote
1answer
325 views

Batch file to delete files by age [duplicate]

I have a directory that is set up as \server\\year\month\day\x, .../y and .../z. I need a batch file that will delete videos located in the x folder in each user's directory for each month day and ...
0
votes
1answer
84 views

Batch file to copy new files from source to destination

I need a batch file that will copy text files that are generated daily and dropped into the E:\BAP Reports\Director Reports folder to our P:. Since nothing ever gets deleted from the Director Reports ...
0
votes
0answers
26 views

How to Change word in file using Batch file

I try unsuccessfully to change word in text file(D:\comp.txt) using Batch File path: D:\comp.txt Old word: server12 My new word: server777 Can someone can help me with the script syntax ?? I ...
0
votes
1answer
65 views

How would I diff two mbox files in an intelligent way?

I have two mbox files containing about 6k emails each. They should be more or less identical, though #1 contains about 100 emails which #2 does not contain. I would love to generate a third mbox file ...
0
votes
3answers
175 views

Robocopy: How to copy assets from multiple locations to a single location and maintain a log

I have multiple folders containing assets (each folder has subfolders containing these assets .mp3, .txt, .png, etc). I want to copy all this assets along with the subfolder to a single ...
0
votes
2answers
27 views

Pinning Shortcuts to the Taskbar by Batch

I'm trying to pin shortcuts to the taskbar with batch. The method I am using is taking a pre-made shortcut from a Setup program, and copying it to %APPDATA%\Microsoft\Internet Explorer\Quick ...
1
vote
1answer
33 views

Batch extract images from *.mts every 30 seconds?

Forgive me as I am just getting started with ffmpeg. I have a folder of *.mts videos (titles are sort of wonky, lots of spaces and characters and numbers---not sure if this is affecting it) and I need ...
2
votes
3answers
208 views

Running .bat over network

I have a .bat file on my server pc which contains various file paths etc which are on that server pc. I have vpn set up so that I can access this pc from my main pc but when I launch the .bat it looks ...
0
votes
1answer
70 views

How to batch convert to mp4 with arista-transcoder?

I dont understand how to list valid preset names and select the Computer - H.264 preset available in the arista-gtk listing. When I batch convert like arista-transcode -p "Computer - H.264" *.wmv the ...
0
votes
0answers
32 views

How to make a logon script window pause or close conditionally with Kixtart [answer] [duplicate]

Windows Server 2008 R2 or Windows 7 I have a batch file that launches a Kixtart script. In CMD or Kixtart, one way or another, I'd like my script to pause for 15 seconds at the end and display a ...
2
votes
1answer
63 views

Run vim command from the command line

I need to do the following in several files: dt{%lx:wq, i.e., delete to the first { find the matching } delete the next character save and exit how do I do this from the command line without ...
0
votes
2answers
146 views

How to use nircmd.exe and set filename %~nF in batch for loop

I'm trying to write a batch file that iterates through each filename, takes part of the strings, and sets the created and modified dates. Mind you, dirpath is a placeholder for actual path. @echo off ...
0
votes
0answers
68 views

net use - disable failure message

I'm writing a script to map a drive for some users, and I'm handling errors and whatnot in the script so it's understandable and not throwing the standard command line errors. The only one I can't get ...
0
votes
0answers
191 views

Can't execute net use from batch file - network path was not found

I have a batch file that includes these lines: set /p _usern=Username: net use g: \\servername\d$ /user:%usern% If I run these commands directly from a command prompt window, the path is found and ...
0
votes
0answers
173 views

batch file modified and created date [duplicate]

I am using BulkFileChanger, but I want to put it to better use. My current OS is Windows 7. I'm a novice when it comes to batch scripting and could use some help. I have a directory of files with a ...
0
votes
0answers
285 views

Windows 10 batch file dns

I have two batch-files, one to change my DNS to Unblock-US, and one to reset it to DHCP. These worked perfectly in Windows 7 and 8/8.1, but after upgrading to Windows 10 i can no longer reset it to ...
1
vote
1answer
53 views

Batch file: environment variable “if” string test

In a batch file, I'm calling another batch file to set a number of date environment variables. The data variables set properly and I can call them. However, in this instance, I need to compare two ...
0
votes
0answers
27 views

TYPE command windows batch file [closed]

I have 10 files like below: file1.txt (file content = "i contain text for file1") file2.txt (file content = "i contain text for file2") file3.txt (file content = "i contain text for file3") and ...
1
vote
3answers
680 views

Windows batch file with TYPE command

I have 10 files like below: file1.txt (file content = "i contain text for file1") file2.txt (file content = "i contain text for file2") file3.txt (file content = "i contain text for file3") and so ...
0
votes
1answer
72 views

Windows: how to call batch file with low priority with Ctrl+C support?

I know that I can run a batch file with a low priority using command: cmd /c start /B /BELOWNORMAL mvn.bat clean install && exit... The problem is when I press Ctrl+C it does not stop the ...
0
votes
1answer
1k views

Windows task scheduler not triggering a task on Windows 10

I have a task that is supposed to run a script I made, every 10 minutes, but it just doesn't seem to trigger it. In the task scheduler it says that next run time is in 10 minutes, but when the time ...
0
votes
0answers
270 views

How to run executable on a network drive in compatibility mode from command line

I have an application (written in Powerbulder 9) that calls an executable on a network drive through the command line. Many people use this application with the same executable on the network drive. ...
0
votes
1answer
52 views

Preserve existing tags in Anki CSV import/batch-add tags

I have downloaded the complete 2012 HSK vocabulary from here, where it is available as an excel file. I have then converted it to .CSV and changed it to this form: 爱;HSK:1 … 做主;HSK:6 The first ...
0
votes
0answers
25 views

Fireworks batch process multiple operations and exports

Full disclosure: I have also posted a similar question on Stack Overflow, but that assumes the best fix for this is to edit the batch process script. I have a sneaking suspicion I am failing to ...
1
vote
3answers
85 views

Moving files/folders to new structure

I'd like to be able to move Folders (and any subfolders and files) from one location to another; however, I only want one specific sub folder moved from each folder in the starting location. Here's ...
2
votes
1answer
392 views

Find and replace hyperlinks in a PDF

I want to automate the process of finding and replacing hrefs (not the anchor text) in 100's of PDF files in a Windows 8.1 OS. I am happy to convert file formats so long as they can be re-compiled ...
1
vote
1answer
102 views

Create a batch file to execute tasklist and append its output to log.txt

I'm trying to create a batch file to execute tasklist every 3 minutes and log it into log.txt. I'm very new to batch files and would like to know where I've gone wrong in my batch file. @echo off ...
0
votes
1answer
46 views

Batch. Mass renaming files in the folder and all sub-folders

I try to rename all files in folder and sub-folders by removing the "-min" part from each filename with help of batch-scripting under win7 @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION CD ...
1
vote
1answer
62 views

Copy filenames from one folder to another [closed]

I have 2 folders with a lot of files. First folder has image files with filenames: 0_01_23_982__0_01_26_692.jpeg 0_01_26_985__0_01_29_987.jpeg 0_02_15_992__0_02_19_995.jpeg etc. Second folder ...
0
votes
1answer
148 views

Start a batch shell within a bash shell with autocomplete with windows

I am using bash inside Cygwin and I want to start a new batch shell within the current shell. So I use cmd to enter into a new batch shell: myuser@machine / $ cmd Microsoft Windows [Version ...
2
votes
1answer
39 views

CMD batch escaping enviroment variable in params

I have to write a batch file with a enviroment variable a param: c:\myapp.exe -f "%APP_HOME%\file.conf" I need to pass exactly the string "%APP_HOME% as param and not its value. How can I do? In ...
0
votes
0answers
24 views

How can I close all active applications(except things like start bar)?

I am trying to make a small batch script that shall close all applications I have open, but not close the ones that need to be open(for example, to not shutdown the start menu, and also I do not want ...
0
votes
0answers
20 views

How to display which files are getting modified using windows batch

I have a windows batch program which monitors a directory and records timestamps whenever a file inside gets modified. I now want to know which file is being modified. In other words I want to know ...
1
vote
1answer
317 views

Batch merge sets of video files?

I have 158 folders, each containing 5-15 video files that are each a few minutes long. I would like to merge all of the videos into one video per folder, and delete the rest. The folders are named as ...
0
votes
1answer
72 views

Call batch file which calls another batch file using the second ones directory as working directory

Assuming I have a batch file (start.bat) in C:\ with this lines : start cmd /k call dir1\dir2\1.bat start cmd /k call dir3\dir4\2.bat start cmd /k call dir5\dir6\3.bat Inside 1,2,3.batch I have ...
0
votes
0answers
37 views

adding 2 audio files to mp4 in separate streams

I have 3 files I want to combine into an MP4: video1.m2v audio1.ac3 audio1-02.ac3 The following works great if I only want 1 audio stream: for /r %%a in ("*.m2v") do ( ffmpeg.exe -i ...
2
votes
2answers
142 views

Fractions in Batch

Why does the following code return 0? @echo off set a=100 set /a a=%a%*(50/%a%) echo %a% pause I assume it's because batch at some point evaluates (50/100) as 0.5 and rounds it down to zero ...
9
votes
3answers
677 views

Virtual Desktop Properties To Command Line

Is there a way from the command line (wmic, regedit, or dedicated tool) to check how many Virtual Desktops in Windows 10 are active, in which a window is, and which one the computer is currently ...
0
votes
2answers
78 views

Batch to find all specific folders

I have several folders named "temp", and I would find them, but when I run the application, only the first instance is shown. What should be done to show the others? @echo off for /d /r "c:\" %%i in ...
0
votes
3answers
122 views

Loop through text file stripping part of the string using batch

How can I use windows command line to do the following? C:\Users\My Computer\SkyDrive\WORK ORDERS\Subdivision\Sec. 1\12345678_123 LUMINAIRE LN.pdf becomes WORK ORDERS\Subdivision\Sec. ...
0
votes
1answer
66 views

xcopy works, but doesn't

Really odd behavoir on xcopy. I have a batch file as follows "<=create a backup of a service - works fine, backup files created correctly=>" For /f "tokens=1-4 delims=/ " %%a in ('date /t') do ...
1
vote
1answer
110 views

Why does CMD substring not work when BAT called from SENDTO?

I wrote a BAT file to strip a leading '@' off a filename. (Please don't ask why! ...why Windows, why CMD...) :) Here's the BAT file: IF EXIST "%~1" ( FOR /F %%F IN ("%~1") DO ( CD /D ...
-1
votes
1answer
133 views

How to rename multiple files in same folder with same filename using batch scrpt?

i need small help, how to rename multiple files without touching their extension (in this case it winrar extension .r*) with batch script? When i try to rename it with rename command batch script ...
0
votes
1answer
145 views

Windows cmd: escape commands to start cmd from batch file, executing commands that add to PATH

I would like to that a cmd command prompt, which maps a network directory to a local path, and then adds that local path to the (local) PATH variable. I have prepared this kind of .bat script, which ...
1
vote
1answer
266 views

Windows batch file, Looping through files in folder to create a parameter list to pass into another script

I have a Windows batch file that process a bunch of files. As part of this I use the following line: forfiles /p "%~dpn1%LogDir%" /m "%SupportLog%*" /c "cmd /c logreader.py @file > ...
0
votes
2answers
38 views

How to create a batch file to save as date

I have created a batch file which runs on task scheduler for Sage VIP payroll system. The problem I am getting is the date date returns the word date.zip, and not the actual date. Code: V: @ECHO ...
1
vote
2answers
697 views

Find process by thread ID

One of my programs outputs its thread ID for debugging purposes. For testing reasons I'd like to kill the process to which the thread ID belongs. How do I get the process ID if I have the thread ID ...
0
votes
1answer
145 views

Wildcard in rename and robocopy command into batch file

What I am attempting to do is automate some work I do daily. What I would like to happen is a prompt saying What is your name? Then use that answer as a variable to be used in different commands like ...