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.

learn more… | top users | synonyms

0
votes
2answers
37 views

DOS batch variable expansion to give Last Access Time

I'm trying to use a FOR /R loop to iterate over some particularly long-named folders (greater than 260 characters in length, hence the need to use \?\ ) I need out of the loop, the fully qualified ...
0
votes
0answers
26 views

Writing a batch script to swith between connecting through a proxy server or not

When at work I have to connect to a proxy server and at home there is no server, so every morning I have to go through the fairly tedious routine of ticking the box in Control panel --> Configure ...
0
votes
1answer
31 views

How do I keep folder integrity when compressing files in different folders

I have a batch file that runs on our dedicated servers every day and compresses the files. Here is a piece of the batch file: %SUBDIR%7z a -tzip %fullname% %datapath%\*.txt >>%LOGFILE% ...
0
votes
1answer
70 views

batch file error

When I tried to run a batch file using gdal_calculate command. The following error occurs: batfile is not recognized as an internal or external command, operable program or batch file. RuntimeError: ...
1
vote
1answer
101 views

Batch File for Download + Unzip (.7z) + Delete + Rename

I would like to create a .bat file in order to download and make following operations on 2 files (FILE1-Date.7z & FILE2-Date.7z) whose names are updated with "Date" information everyday. The batch ...
0
votes
0answers
39 views

How to add a program in registry using batch file?

I want to add an .exe program to this registry path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell I tried this code @echo off reg add ...
0
votes
1answer
38 views

Can Windows XP use net send command to send a message to a later version of windows?

The net send command can only be used in Windows XP or earliar versions. But can a Windows XP computer send a message to a later version of windows using the net send command?
0
votes
0answers
26 views

Bat command error cannot find specified file

I have written this simple batch to truncate a table but when I try to run it on this particular server (Windows 2008) it comes back with an error. The system cannot find the file specified. The same ...
0
votes
0answers
22 views

Need help on renaming of files in a remote server using batch file

I need to rename a file in Server B using a batch script. This is easy: rename \\servername\path\test.txt test.old On Server B, I have an application that will create a file daily at 9pm. Eg: Every ...
0
votes
3answers
63 views

How can I convert a Windows batch script to a .exe?

I have a fairly simple batch script that I would like to execute using a macro on my fancy gaming keyboard. However, SteelSeries Engine only supports opening a .exe file with the macro buttons. Is ...
0
votes
0answers
32 views

Massive XML Import in Excel in batch mode

I have created an XML map in Excel 2010 and I can import hundreds of XML files at once in an Excel sheet. However I would like to automate this, i.e. import new XML files that reside in a directory ...
0
votes
1answer
43 views

Syntax for success code of “Where” command

What is the syntax to get a success code when running the "Where" command? I need that to end a loop. And what is the syntax to get the directory of the found file? This command: WHERE /r ...
0
votes
1answer
39 views

Batch to retrieve TFS version erroring in FOR /F where TFS attempts to PIPE to findstr

I have this partial batch, but it gives me an error (On 64 bit installations) SETLOCAL EnableDelayedExpansion REM Figure out what ProgramFiles Root we run the command SET ...
1
vote
1answer
56 views

Windows 7 CLI not recognizing commands without specifying extension

I've apparently gone and mucked up my system in a strange way. Windows 7's cmd prompt is no longer recognizing any executable or batch files unless I explicitly type their extension. ...
0
votes
1answer
64 views

batch file to remove and reassign drive letters

I have what I believe to be a unique issue. I don't do a lot of work with batch files, but I think that would be my best option. Here is the situation. I have special software that looks for a ...
0
votes
2answers
71 views

How to call perl file every minute from batch file

I have written a perl script which i try to call every 1 minute from a batch file. There is no error but it do not call it every 1 minute. It just pop command prompt when clicked once on .bat file. ...
0
votes
1answer
30 views

batch rename for pictures without changing original name in windows 8

hi a friend has given me a wonderful small program to rename my pictures (batch rename). it is much easier than all the other programmes I have found so long and I'm really fond of it. The only ...
0
votes
0answers
39 views

Make a batch file close when a program different from the one it starts closes

I need to make a batch file that starts one program, and closes when another closes, but i cant get the batch file to work without starting two instances of name2. When I only use Start /wait, the ...
0
votes
2answers
123 views

Batch file for a refresh of mapped network drive?

Is there a batch file/script that can be used to refresh a mapped network drive on Windows 7? The computer is currently hooked up to a mobile broadband connection (Novatel wireless MC551). The ...
1
vote
1answer
25 views

Batch file executing differently than command prompt

I'm trying to make a jar file association patch for a friend of mine, and when I test the batch file on my computer and try to launch a jar file, I get an error saying Unable to access jar file. But ...
0
votes
1answer
25 views

run all batch scripts in all subdirectories

I want to run all x.bat automatically in all recursive sub directories: C:\test | +---folder1 | x.bat | +---folder2 | x.bat | +---folder3 . x.bat . .----foldern ...
0
votes
0answers
32 views

batch listing all active ip addresses

I searched for this, then I tried to create a batch file to no avail. I have a great program (netwatcher) that gathers active IPs (using the arp table) in one address range only, but I have subnets ...
0
votes
1answer
168 views

Running batch file on remote machine (VM) using PowerShell

Quick question, have searched for awhile but can't find answer anywhere. Some background: I have a local machine and remote machine (Virtual Machine) that I am connecting through RDP. I have a batch ...
0
votes
1answer
66 views

batch video size reduction in nested folders maintaining their source folders as destination

I have a folder containing nested folders which hold many video files with different formats. I want to reduce their size with HandBrake and maintain properties of the original videos (such as frame ...
0
votes
1answer
68 views

How to stop a running .bat file which runs after every 10 minutes

I have written a .bat file which runs every 10 minute. The problem is now when i want to stop it it never stops. (This .bat file further calls a perl file in the code). What can be done to kill it ? ...
2
votes
1answer
51 views

To send Enter key over remote computers in CMD

Below is my batchfile script that will launch an application in HOST & remote computers. @echo off setlocal enableextensions enabledelayedexpansion for /f %%a in (C:\COST\PCList.txt) do ( SET IP ...
0
votes
1answer
50 views

How to append to the user %PATH% from command line

I found plenty of questions like this one on StackExchange but no one work in my specific case. I would like to easily add literally %FOO% to the user environment variable PATH. I found the ...
1
vote
1answer
60 views

Running a batch file command with arguments

I'm creating a script to do some repetitious OpenSSL work, but cannot seem to get the batch file to execute the commands. Once the file has navigated to the correct directory, I try running: openssl ...
0
votes
1answer
36 views

CMD command to open a file using link

Below is my batch file script @echo off setlocal enableextensions enabledelayedexpansion for /f %%b in (C:\COST\Programlink.txt) do ( %%b pause ) And in the programlink.txt as mentioned in the ...
1
vote
2answers
139 views

Chrome clean-up batch script

I wrote a batch script that should automatically delete sensitive data but NOT nuke away everything. What my (shortened) script currently looks like set ChromeDir=%LOCALAPPDATA%\Google\Chrome\User ...
0
votes
0answers
12 views

Chop everything after the first 30 seconds of MP3s on mp3splt-gtk 0.9.2

Chop everything after the first 30 seconds of MP3s on mp3splt-gtk 0.9.2, so I would like for my whole batch within the file of Mp3s to be only the first 30 seconds of the song, and everything else ...
0
votes
0answers
74 views

How can I have a custom 7Zip batch script work like the “add to archive…” context menu action of 7Zip?

I am trying to figure out a way to select several files and folders in Windows Explorer and add them to a password protected .zip archive using a batch script, 7zip and a custom context menu item. ...
0
votes
0answers
26 views

How to rename large quantities of files with a common pattern to their name [duplicate]

I have a large quantity of files to rename, 1,000 files per folder and about 15 folders total I have to change the name from eg. Jonny 14,354 to 14,354 Jonny The Numbers of the end of the file name ...
0
votes
1answer
40 views

Batch file for getting all file names within a folder

I'm using a program called Irfanview which can merge two images into one using its command line function. Here's an example: i_view32.exe /panorama=(1,C:\folder1\img1.png,C:\folder2\static_img.png) ...
1
vote
1answer
62 views

Download files from web, unknown name of file

I need to download 10-15 programas every week, and looking how to automate the process. It's easy when I know exactly the name of .exe file; but what about the case when I dont? For example, lets ...
1
vote
1answer
35 views

Modify how Doskey macro passes arguments to the command based on arguments passed to it

I have a farily simple doskey macro DOSKEY s="C:\Program Files (x86)\Git\bin\sh.exe" --login So I could switch from command prompt to git shell by s But sometimes I only want to execute a single ...
1
vote
2answers
36 views

Is there a more compact way to use the IF loop functioning in a batch file?

The classical way is if "%name%"=="john" goto ok if "%name%"=="eric" goto ok if "%name%"=="mary" goto ok But can this be done in more compact way?
1
vote
1answer
71 views

Need Batch File to close a Window.. NOT the batch window

Complete novice here so please forgive if the answer is obvious. I have a batch file that does the following. Starts program 1 Waits 3 seconds (I have to click a button on program 1 after it opens) ...
0
votes
1answer
46 views

How to batch compress sub subfolders?

I'm on Windows Server 2012 R2. I have a directory that looks like this: Folder01 Subfolder 1 File1 File2 File3 Subfolder 2 File1 File2 Subfolder 3 ...
1
vote
2answers
107 views

Exit /b 0 does not set %errorlevel% to 0

I have a weird behavior wrt setting errorlevel in a batch script to 0. I am calling a batch script a.bat on a Jenkins job, which in turn calls a second script b.cmd and evaluates the errorlevel after ...
1
vote
1answer
57 views

Issue with rsync/cwrsync on windows

I'm having this batch script which i'm trying to make to backup stuff to my external drive. For some reason, it works just fine when I run it as administrator but not when i run it as a regular user. ...
0
votes
3answers
54 views

Automating User Input / KeyStroke For a Program

I've read about this problem on related posts found here at Superuser; however, my issue is slightly different and potentially difficult to solve: I am working with a phylogenetic program called ...
0
votes
1answer
35 views

for loop stops batch script

ok so been playing with this script and for some unknown reason it always crashes out (exits the prompt) when the script reaches the for statement, however if i simply copy and past these commands one ...
0
votes
2answers
94 views

Remove Recent Places from Windows 7 Favorites using Batch or Registry?

How do you remove the Recent Places shortcut from the Favorites side bar in Windows 7 using a batch file or from the registry? For example, when running a batch file to configure, add, and remove ...
0
votes
2answers
35 views

How to run audio from a batch file without any windows showing [closed]

Can it be done without any 3rd party software and if not, what should I use?
0
votes
0answers
20 views

how to auto run batch file when a keyboard is connected?

I have Asus Transformer T100: a tablet that came with a physical keyboard. The keyboard is connected with a strange port (not USB). I want to run a specific batch file when the keyboard connects and ...
1
vote
0answers
25 views

move filename bar.filename, without mentioning filename twice?

How do I move filename to bar.filename without mentioning filename twice? In Bash I can just do: mv {,bar.}filename. I suppose I could do: set filename="foobar" && mv "%filename%" ...
0
votes
1answer
88 views

Is there a way to compress folders individually using 7zip on a large collection of folders?

How can 260 folders be zipped individually using 7zip with a single command? The person who originally asked this question voluntarily deleted the post. Since it was an interesting task, I ...
0
votes
2answers
52 views

how to run a batch recursively

I have a parent folder (BIG_Folder), which contains many subfoldes (folder1, folder2, folder3 ...) in each subfolder a batch file exists, it is always the same (x.bat). I want to run all bats, ...
3
votes
1answer
29 views

Slurm jobs are pending, but resources are available

I use SLURM as a job scheduler and queue for a small cluster (single node with 64 cores). To submit a batch job I use: > sbatch run.sh Where run.sh looks like: #! /bin/bash #SBATCH --ntasks=4 ...