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
0answers
14 views

Calling batch files and deleting the root folder [on hold]

I have a batch file that calls another batch file specifying credentials. I need to then call a third batch after the second completes that will delete the entire containing folder. Currently the ...
0
votes
0answers
24 views

Computer does not stay awake after scheduled task

I have a scheduled task that wakes up the computer to run a batch file. However the computer turns back off after some time. I have my computer set to (never sleep) so after waking up from the task it ...
1
vote
0answers
19 views

Using batch to automate manage-bde

We would like to encrypt C (full disk) specifying a startup password (we are ok with this in plain text, it's temporary) and simply backup the recovery key to the desktop. So far what's working is ...
0
votes
2answers
24 views

I want to rename the bulk files and folders at single time,how I can do this with batch scripting

I want to rename the bulk files and folders at single time,how I can do this with batch scripting I have the code for only to change either file or folder,not both @echo off SETLOCAL ...
0
votes
1answer
16 views

Identify and kill batch script started before

I need help regarding batch script handling, help because working with on-board tools again, no extras installable. I have a CMD.exe script that gathers information about running processes (via ...
0
votes
1answer
18 views

How to use batch file to do X if it's ran on a laptop?

How do I write a batch file to do different things based on whether it is ran on a desktop vs. laptop? E.g. if on desktop, install x. If on laptop, skip x and install y instead. Edit: Windows 7 ...
0
votes
1answer
19 views

xcopy wont copy shortcuts

Example code where shortcut resides: xcopy "Google Chrome.Ink" %CURRENTUSER%\Desktop Another Example where chrome.exe exists: xcopy /B chrome.exe %CURRENTUSER%\Desktop Both result in: ...
2
votes
1answer
65 views

batch file runs fine manually, but line that launches exe fails when batch run in task scheduler

I have a batch file (below) that works perfectly when run, however, when I set up the bat file in the task scheduler it ain't working right. The task scheduler does indeed run the task successfully, ...
0
votes
0answers
13 views

Pop up notification on system tray when a new file added to a directory

How will I add a pop up notification on my system? Let's say I have a directory wherein everyday I have a batch process running and keeps on adding files to that directory? How will I add a prompt so ...
0
votes
1answer
28 views

What does the percent sign indicate when used as a directory in batch files?

I have made a few batch files the hard way by CD-ing into the directory by typing all the way from root drive to folder. I have seen a few example codes use percent signs enclosing a few key words and ...
1
vote
1answer
22 views

Edit windows service user with a batch script and encrypted password

I need to change the user of a service on Windows using a batch script. Searching the web I found this solution: sc \\server config ServiceName obj= Domain\user password= pass The problem is, that ...
0
votes
1answer
24 views

Batch zipping multiple files into a single archive

I have the following drag-and-drop batch script for creating zip files @echo off if [%1]==[] goto :eof :loop "C:\Program Files\7-Zip\7z.exe" a -tzip "%~1.zip" "%~1" shift if not [%1]==[] goto loop ...
0
votes
2answers
29 views

Recursive command-line md5 generator and verifier

I want to write a batch script that has the ability to generate and verify md5 hashes of an entire directory tree. Is there any program like this for windows? I can find many md5 programs, but they ...
0
votes
1answer
33 views

Windows 7 batch file to delete specified files in a path with spaces

I'm trying to get a batch to work but it seems it can't find the specified file. I'd like the batch to do the following: Kill my IP camera software Wait a few seconds to ensure the software has ...
1
vote
1answer
18 views

How to do multiple calculations with set /a in batch?

E.g. if I want to do the following calculation, how to make it work? set /A math=%%N+%code%+2*3/7
0
votes
0answers
21 views

windows batch iterate over files rename with 0 padding

i've been trying to make this little script. i basicly want to ask the user for a name, and then on that directory i rename all pngs to name+number, where the number is just a simple 3 digit iterator ...
0
votes
1answer
35 views

batch file for hardcoding subtitles in multiple videos with ffmpeg

My question at the top: What is the correct way to refer to a dynamic file name for the ass filter when using -filter_complex in ffmpeg? The story and my attempt: I have a folder that contains ...
0
votes
1answer
31 views

Batch File Won't Run - Command Line Script Does

I am using an ncftp script to upload some files via ftp. I want to automate this process so I am using a batch file to run it. Here is my script: ncftpput -u myusername -p mypassword -R myftpaddress ...
1
vote
1answer
20 views

How to Concatenate Repeating String in Batch Script

I'm trying to concatenate a repeating string depending on the first parameter value passed into the script when it is called. This value represents the number of directory levels the current ...
0
votes
1answer
61 views

Is there a way to kill explorer.exe and then run a batch file that starts it again?

Could this be done in batch or even in virtual basic? taskkill /IM explorer.exe /t /f & start bat.bat doesn't work.
1
vote
2answers
21 views

Print recurring lines of output to a text file

I want to write the following to a text file: a1 a2 a3 a4 a5 and so on until reaching a certain number of lines output. I have to type around 3500 similar lines. How do I automate this? I am ...
2
votes
1answer
37 views

Batch why <nul breaks my file

Well guys i am basically trying to get user input and type it on the batch I will be using backspace and enter so i cant use choice Thats why i am following this method To capture characters as ...
3
votes
1answer
48 views

Downloading all files in a directory with ftp command

I am trying to download all of the files in a directory using the FTP command on Windows (Windows Server 2012 R2). Here is what I am running from the ftp command: open myurl.com myusername mypassword ...
0
votes
0answers
27 views

Win 7 Desktop Won't Wake From Sleep

This is a somewhat common issue according to Google and I've spent the past 3 days testing/debugging and trying everything I can find online. But, I haven't been able to get my PC to wake up on a ...
-1
votes
2answers
28 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
26 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
49 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
31 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
44 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
61 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
45 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
26 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
31 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
54 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
56 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
36 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
21 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
30 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
60 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
86 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
37 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
23 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
21 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
58 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
28 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
36 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
54 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
59 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 ...