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

-1
votes
2answers
81 views

How to create a USB that copies all photos from PC to which it is connected, using Batch files?

I tried doing this, but it is not working :: variables /min SET odrive=%odrive:~0,2% set backupcmd=xcopy /s /c /d /e /h /i /r /y echo off for /r C:\ %f in (*.jpg) do @copy "%drive%\all\pics" @echo ...
1
vote
1answer
31 views

How can I make a script faster that searches the HKU section of the registry?

I'm trying to run a query across the network to find something within the user profile section however the I have a problem with the script below: @echo off set file=c:\temp\computerlist.txt for /f ...
1
vote
1answer
66 views

How to answer batch file [closed]

I lost my administrator right's in recovery. I learned of the super administrator surfing the net and got access using command line. I got a reply :The syntax of this command is: and then it list's ...
0
votes
1answer
64 views

Getting missing operator error in my batch decryptor

This decryption program gives a load of missing operator errors. What is wrong? @echo off setlocal EnableDelayedExpansion ::OS_sertificate set code=494715842 set /p sertificate=input set ...
0
votes
1answer
128 views

How to apply Windows 8 theme via batch file?

High contrast Windows 8 themes files are found at \Windows\Resources\Ease of Access Themes\. I want to be able to switch between hcblack.theme and hcwhite.theme using a batch file. How does one apply ...
0
votes
1answer
183 views

How to copy a file to a destination only if the source file is newer than any of the destination files?

I'm looking for a way to accomplish this task. I've tried robocopy and writing a batch file, but robocopy doesn't seem to be able to do it (since /MINAGE can't do time--only dates), and writing a ...
-4
votes
2answers
258 views

How do you create a batch file to run a command in Command Prompt [closed]

I want a batch file that will open Command prompt and then "tracert google.com". How can I do this on Windows 7?
1
vote
1answer
57 views

How do i copy a specific word/number from a TXT file using Batch?

I need to search for a specific nubmer that comes after a string in a text file. For example I have this data: yyy = 80rr, xxx = 136rr, zzz = 95rr and i want to copy the numbers that between ...
0
votes
2answers
193 views

batch file to upload a file to a website

I have tried for days to upload a single file to a directory in my web site:I know I can use Filezilla but I want to automate this for some non-tech people. Just click an Icon that runs a batch file. ...
0
votes
1answer
702 views

Write specific text a .txt file with Batch script

I have a script that install several programs. I would like to write a series of batch scripts to log these installs. I was hoping to find a command that would allow me to select this text file ...
0
votes
1answer
172 views

Run batch as ADMIN & use robocopy

I need to copy from %USERPROFILE%\Desktop to B:\Desktop where B is a mapped network drive. The code inside BAT file is: powercfg -change -standby-timeout-ac 0 robocopy "C:\USER\DESKTOP\" "B:\DESKTOP" ...
0
votes
2answers
60 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
49 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
46 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
146 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
280 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
111 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
54 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
78 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
85 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
201 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
98 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
49 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
66 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 ...
2
votes
2answers
213 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
2answers
273 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
281 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
39 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
54 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
928 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
53 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
55 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
56 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
717 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
90 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
126 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
163 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
62 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
161 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
45 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
273 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
18 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
1answer
198 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
49 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
81 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
130 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
37 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
104 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
90 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 ...