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
5 views

Jscript executing batch file that incorporates setting of environment variables

I'm working on creating a base for a batch file that is designed to 2 main things: Set several environment variables for the current session only Executes a jscript file Currently this is what I'm ...
0
votes
0answers
5 views

curl Bulk Download Images Images with Directories

I have a list of several hundred files I need to pull via SFTP. They are located in various directories and I need them to be in the same directory setup on my local machine. It is important the files ...
0
votes
0answers
11 views

Batch change txt with constant input but variable output

I have a text document with 364 words. And i would like to save every single word from this document as a separate .svg image. So as end result I would like to have 364 separate .svg files with each ...
1
vote
3answers
115 views

how to make a batch file to rename a folder when I start and close a program? [on hold]

How to make a batch file to rename a folder when I start a program? - Let's say I want to start my word.exe, at the same time I need to rename a folder c:\users\my profile\my word documents to be my ...
-1
votes
0answers
10 views

Add new dependency to a Windows Service that already has dependencies

I want to add via Batch script a new service-dependency to an existing service with old dependencies, without deleting these dependencies. I know the command sc config ServiceA depend= ...
0
votes
1answer
14 views

Running .bat file in zsh (in Windows)

In a Windows machine I want to avoid using cmd.exe at all cost. I'm trying to use babun (mintty 1.1.3) to run a batch file in a Windows folder. This works: { ~ } » ./file.bat -o ...
1
vote
1answer
19 views

Renaming files,folders and subfolders recursively by using batch script

@echo off SETLOCAL ENABLEDELAYEDEXPANSION SET old=V1 SET new=newdocV2 for /f "tokens=*" %%f in ('dir /b *.ods') do ( SET newname=%%f SET newname=!newname:%old%=%new%! move "%%f" "!newname!" ) ...
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
25 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
21 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
3answers
33 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
17 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
20 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
69 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
15 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
23 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
25 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
31 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
37 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
35 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
62 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
40 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
30 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
50 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
46 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
33 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
56 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
58 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
24 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
61 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
88 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
24 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 ...