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
2answers
572 views

How can I start a VirtualBox VM and then run a batch file inside the VM

I have a lengthy build operation which calls several batch files in succession. Most of these batch files start 32-bit compilers, etc, but one of them involves running a legacy MS-DOS 16-bit app ...
0
votes
2answers
2k views

Batch Printing TIFF Files in Windows

I am trying to batch print .TIFF files efficiently. I have found that I can drag files from windows into the print job queue window and it will print them right from there. With PDF's of varying ...
1
vote
1answer
385 views

Commands run in a batch file only when writing cmd /c before

I am running the following command rabbitmq-server.bat" -detached This command runs a sewrver in the background. When I run it from a batch files - the flow stops and later commands in the ...
3
votes
1answer
2k views

Win7 Task Scheduler Won't Run Copy Commands

I'm trying to run a patch file every morning at 4am. For whatever reason, the lines in the batch file that use robocopy.exe are skipped. I've also tried xcopy and cp(from UnxUtils). The batch file ...
0
votes
0answers
301 views

Export/Convert PNG to HTML table using GIMP batch mode in Windows 7

I need to convert PNG images to HTML tables in GIMP batch mode from the Windows command line and have been unsuccessful using google to find an example I can reuse. I can open the PNG in GIMP and ...
0
votes
1answer
10k views

Windows Batch file to copy latest files to a new folder

I want to copy the latest file from a Folder and its subfolders to a new location. The following code works well, BUT I do not want to filter by Date AND Time (/O:D), but DATE only, so that all ...
0
votes
1answer
141 views

How to associate a file extension to be opened with a batch script?

I want to get rid of OSPPSVC (Office Software Protection Platform Service). Then, I have replaced the links to open Office programs with a link to launcher.bat: @echo off title Launching Office... ...
2
votes
1answer
567 views

Batch change filetype associations on OS X

I just installed Sublime Text 3 beta and would like to re-associate all the filetypes I have linked to ST 2 with ST 3. Is there any way to perform this as a batch operation? For example: $ ...
2
votes
1answer
546 views

Mac OSX Text to Speech Batch

I have 300 English text files that I want to make into mp3 files to listen to as and when. Is there a method, that I could use so that my Mac will batch text to speech the files to mp3 using a ...
1
vote
2answers
1k views

Batch file for starting powershell in a specific directory

I am learning to program in python through the book "Learn python the hard way". Therefore I use powershell to run my programs. Since I had to manually change the directory every-time I started ...
0
votes
1answer
210 views

I need to batch convert Word (.doc) to Word Perfect documents (.wpd)

Everything I have found so far is going the other direction and few specifics. I need to convert approximately a hundred Word documents into WordPerfect documents. It has been more than a decade ...
1
vote
1answer
539 views

How do I create a .bat to logoff a specific user from your pc?

Running remote desktops that are acting as specific users on Win7x64. The main username I'm using is Server. And the rest are as follows hh1 hh2 hh3 etc. Basically these handheld remote desktop ...
2
votes
6answers
12k views

How to perform wildcard string comparison in batch file

My batch file writes a list of files on screen where it contains the .cs extension for /F "usebackq delims=" %%A in (`cleartool ls -rec ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed" ...
3
votes
2answers
3k views

Run a batch file when I lock/unlock my computer

Is there a way I can run a batch file upon locking my computer, and then run another batch file when I unlock it? (Windows 8.1) Thank you!
0
votes
1answer
608 views

How can I run a batch file only one time per comptuer?

I have a batch file that I want to push out to make some changes, but the changes take a while and only need to be done one time, how can I manage this?
-1
votes
1answer
2k views

“CACLS” is not recognized as an internal or external command, operable program or batch file

I have been using CACLS batch file many times and today it is not recognized. CACLS.EXE exist in C:\Windows\System32 and I have tried writing at command prompt: CACLS * /E /T /C /G Administrators:F ...
0
votes
0answers
48 views

How to start an application in a given directory, using other as its working dir?

For a system we are deploying for our customer we need to run the setup executable from %temp% and have it use for the installation, files in another directory. This cannot be solved at the ...
0
votes
2answers
89 views

How to batch edit the metadata of mp3s? [duplicate]

I would like to edit the metadata of several mp3s at once (say Album, Artists etc.). What is a quick and easy way to do that? I have Windows, OS X and Ubuntu available, so I don't mind using any of ...
5
votes
2answers
2k views

Why is the “Run as Administrator” checkbox disabled?

I have a .bat file that cannot allow me to set it to run as admin as required by going to the Properties box and check for Privilege checkbox. But mine is disabled as below snapshot. What can I do ...
0
votes
3answers
943 views

Batch file that run on a special day

How do I create a batch file that once clicked on, starts an .exe file if it is a Sunday? I do not want it to run the .exe file if it is on another day. If for example it is Friday I just want it to ...
0
votes
1answer
700 views

Using START /wait with MozBackup batch scripts

OS: Windows 7 64-bit I have three batch files. FirefoxBackup.bat ThunderbirdBackup.bat Firefox_Thunderbird_Backup.bat The script inside Firefox_Thunderbird_Backup.bat is shown below: @echo off ...
0
votes
1answer
252 views

Rename a dynamic folder in Windows using batch script

C:\Users\xxxx\Downloads\CarepointServiceR2_CarepointServiceR2_**109**_artifacts The Number which is highlighted is dynamically changed each and every day. I have to rename this like ...
2
votes
0answers
88 views

Delete folders in subfolders [closed]

I have about 3000 folders Each folder contains titlefolder typefolder -content I need to get rid of the typefolder and have the content moved up one to the titlefolder. I know I can ...
0
votes
0answers
375 views

Windows 8.1 bizarre audio issues

I have an Asus K52JT laptop running Windows 8.1 since three months ago. Audio speakers have worked fine since this week. At startup it is working, but after a while (15-60 minutes) it eventually stops ...
0
votes
2answers
414 views

Delete a file inside subfolder using bat

I know the name of the subfolder inside which the file I want to delete is located. The name of the subfolder is "My Subfolder" and the file I want to delete inside the subfolder is "The-Bad File.txt" ...
0
votes
1answer
65 views

Restart Service on Remote System Batch

Just having trouble with a batch and need some clarification on 'IF', 'ELSE' and 'GOTO' @echo off sc \\RemoteServer stop "My_Service" :query sc \\RemoteServer query "My_Service" if %state% == 1 ...
0
votes
1answer
1k views

How to extract part of a string between 2 delimiters, in Windows batch file?

I have a variable length string starting with START and ending with END as delimiters. I want to extract the string between START and END. I tried doing SET _result=%String:~6,-4% ECHO %_result% ...
2
votes
2answers
3k views

Check Multiple if conditions in bat file/ and operator in bat

I want something like this:- if %ERRORLEVEL% GEQ 1 && %ERRORLEVEL% neq 255 GOTO Not closed by user . But this syntax is not working.
1
vote
2answers
5k views

How to schedule taskkill in bat file

I want something like this:- taskkill 7z.exe after 50sec. code 1 code 2 code 3 7z.exe will be killed after 50 sec but the program should execute code 1 code 2 code 3 without waiting for the ...
2
votes
1answer
3k views

How to show extraction progress of 7zip inside cmd?

7z.exe do not show any extraction progress in cmd."C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I ...
2
votes
2answers
3k views

Use Batch findstr for files with whitespaces

I'm trying to search for a string in a given file. This file can have whitespaces in its name and I'm having trouble with the Batch file. I can easily do this by console getting the correct results: ...
0
votes
1answer
5k views

Create a Batch file (.bat) to search an string through multiple files

I am using Windows Server 2008 and I need to create a Batch file (.bat) to search for a given string in 20.000 to 30.000 files located all in one folder in the same level (without subfolders). I have ...
0
votes
1answer
356 views

How can you batch process a directory of images using Intensify Pro?

I have a directory of 4000+ images that I took (timelapse). Since they are all nearly identical, I can be pretty certain that whatever tweaks I want to make to one can be blanket applied to all. How ...
0
votes
1answer
2k views

How to filter/pipe wmi output from batch or command prompt

I need to write a little script for a specific HDD. I use the following command to detect the HDD by size: C:\>wmic logicaldisk get size,freespace,caption | find "750153363456" E: ...
0
votes
1answer
9k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
1answer
331 views

Formatting date to desired format in batch file

I am running a batch file as @echo off set yy=%date:~-4% set mm=%date:~-7,2% set dd=%date:~-10,2% set MYDATE=%dd%%mm%%yy% md UserRecords%MYDATE% cd E:\testuser\OpenDJ-2.5.0-Xpress1\bat ldapsearch -h ...
0
votes
1answer
735 views

Bat file fails when file name has spaces

I have this batch file that process some video files in a batch. Things work just fine as long as the filename has no white spaces in it's name. If the file name (test movie.avi) has white space it ...
1
vote
2answers
2k views

Make Batch File Cmd Window Stay Open For X Seconds

I'm running a batch file on a server to dump a MySQL database. I'd like to have the cmd window stray open for, say, 20 seconds, and then close. That's so if I run it manually I can see that it ...
1
vote
2answers
1k views

Batch: How to run a program when the computer is idle and stop when it's used?

I need to run a Windows batch (or any other command line software would do fine) that would run a program when the computer has been idle for a minute and stop it when it's used. I should obviously ...
0
votes
1answer
1k views

Send msg on skype with batch file [duplicate]

How can I send messages to my friend on skype with a batch command line? i've tried, but is used to send images or other media. "C:\Program Files\Skype\Phone\Skype.exe" /sendto:XXXXXXX Test
0
votes
0answers
148 views

how do you monitor the progress of a command line program?

We have some custom command line programs at our Windows shop. These commands are scheduled to run (from within bat files) at regular intervals using the Task Scheduler. Our tasks pull data from ...
4
votes
2answers
8k views

batch - File last modification time with seconds

I want to know when a file has been modified for the last time. I can get these infos using the following batch script: FOR %%i IN (myfile) DO SET modif_time=%%~ti The problem is that I need ...
2
votes
1answer
723 views

Running vim script exits batch file? (Windows .BAT/.CMD)

Trying to run a vim script as part of a batch file with vim -u NONE -S dothis.vim but what is puzzling is that the batch file exits after this line instead of continuing with the next statement. ...
1
vote
2answers
359 views

Stop a “completly hidden batch file”

I'm running Windows 7 64 bit Home Premium. My new internet connection is a bit buggy, and I need to keep reconnecting. To make sure my computer keeps connected while I'm away, I created a script that ...
0
votes
1answer
184 views

Is there a command that allows me to set a prefered IP Address for an adapter? [duplicate]

I've got some customers who should use a specific IP in their network adapter, but manually setting it is a pain sometimes. So I would like to know if there's a shell command / batch that allows me to ...
2
votes
1answer
110 views

Rename files with a batch but only the ones ending on “*D.txt”

I want to rename all the files in a single directory but only txt-files that end with a D. Here is what I tried in a batch... but both didn't work. -----try1----- @echo off set ...
0
votes
3answers
274 views

How do I change my username on Windows 8? Or get around this?

My username on my computer is BreeBreeBRAN™ I'm trying to make a batch file to delete the firefox temp folder and run it as a task on startup. So my batch is cd ...
1
vote
2answers
780 views

Batch convert to UTF-8 a directory having both UTF-8 and CP-1251 files

I have a directory containing files, some of them are UTF-8, some are CP-1251. I want to convert the ones that are CP-1251 to be UTF-8, but without corrupting the UTF-8 files. I tried using iconv -f ...
0
votes
1answer
390 views

writing a batch file: having a batch insert a command into another cmd-based program

i'm trying to have my batch open another cmd based program, wait some time, then input some commands into the cmd-based program, but can't find any documentation on how to do it. this is the batch ...
0
votes
0answers
195 views

how to close running batch file for few hours daily

We have a batch file which runs continuously in our windows 2003 server because a Java application is depending upon that. However, now I wish to close it automatically for half an hour every day at ...