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
65 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
28 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
37 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
94 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
24 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
130 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
60 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
50 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
48 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
57 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
35 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
134 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
11 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
68 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
61 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
68 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
42 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
93 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
54 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
49 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
34 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
89 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
86 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, ...
2
votes
0answers
24 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 ...
1
vote
1answer
43 views

Looking to rename a batch of cab files to lowercase as well as adding their SHA1 Hash

I need a batch script to rename all the files in a folder their lowercase equivalent, with their SHA1 hash added at the end after an underscore. Example: I have a file called: ...
0
votes
2answers
164 views

Windows 7 dos batch file to open file read second or third line and rename file to found text [closed]

I have about two thousand text files I need to rename, but I need to open the file find the line starting with the letter "O", extract the "O" and the next five characters, close the file, then rename ...
2
votes
1answer
36 views

I have a batch file that echos multiple lines. I would like to output it into the file but the file only shows 1 line

This is what I have: SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION @echo off set num=0 set "suffix=" for /f "delims=" %%s in ('dir /b /a-d /o:gen') do ( if /i "%%~xs" equ "!suffix!" ( set ...
3
votes
2answers
318 views

How to find the PCs name in a batch script?

How would I find the name of the PC running my batch program on it? I would like to find the name of a PC that is running my batch program and be able to store it as a variable. Any help?
0
votes
1answer
49 views

Find IP with Batch

I need to use a command of some sort to find the external ip of the user of my batch file. I have tried many methods but I need the batch file to recognise the ip as a variable of some sort so it can ...
1
vote
0answers
30 views

The Command “copy /b Source+,,” does not work in a Batch Script [duplicate]

I'd like to update the timestamp (Modified Date) of a file in a batch script by using the following command "copy /b Source+,," but it does not work. I tried the same command through command line ...
0
votes
1answer
64 views

Delete “unidentified” carriage-return char from a text file

I have a text file containing a strange "carriage return" char. If I open the file with Notepad I can't see the new line. If I open the file with Wordpad I can see the new line. I uploaded an ...
0
votes
1answer
47 views

Script for a batch file that runs a program for a specific period of time

I want a script for a batch file that makes a program run every 10 minutes for 5 seconds each time. In these 5 seconds, the program must be running on top of all the other windows, but out of focus so ...
0
votes
1answer
24 views

pipe + one digit number does not echo

I have a script that reads the row count of file and sets this number in variable ROWCOUNT. So to add footer like this "F|5" to file file.txt with ROWCOUNT minus header I do the subtraction and with ...
0
votes
1answer
52 views

Use existing explorer.exe instance when calling from batch file - Windows 7

In my batch file, I am calling a new Windows file explorer at a specific location by using the following: echo off explorer.exe "C:/Users" The user then navigates to other folders as needed. Then, ...
0
votes
1answer
122 views

Extract multiple strings between two words in a file

I have a text file made this way: hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg ...
0
votes
0answers
46 views

Rename files using cmd and allow duplicates file name

I have my batch file which consists of the following command. REN "H:\April2012\A04\mr_sudheendra_holla_vaderhobli.pdf.1335780379203.ver1" "mr_sudheendra_holla_vaderhobli.pdf" But if duplicate ...
0
votes
2answers
40 views

Cannot use PStool for more than 7 PCs over LAN Network

Below is the batch file command I am currently using to shutdown the remote computers through LAN Network. Here is what it does. I have specified the remote computers IP address in text file named ...
0
votes
1answer
55 views

batch file to run two application and when 1st app closed, other will be close too

Its a game called SubwaySurfer for pc, to run it through your keyboard we need to set autohotkey, what I need is when user click to play a game the autohotkey file will be run too, and when the game ...
0
votes
0answers
47 views

How can I add loopback adapters with the command line and configure them with the command line?

What is the command line to add a loopback adapter with IP 127.0.0.2 on Windows 8.1? I need to add 65,000 ip's to my local machine for network stress tests (connections from many different IP's) for ...