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

Rename files using batch file

I have been searching for a way to rename 150 files daily simply by executing 1 command. The current files are in the same folder C:\reports. The file names differ and the only change I have to make ...
0
votes
1answer
135 views

How To Properly Get The Drive Letter of a Mounted VHD in batch script

How To Properly Get The Drive Letter of a Mounted VHD in script. Is it possible? list volume select volume <volume_number_of_attached_VHD> assign letter=v exit in this part of script it's ...
0
votes
1answer
22 views

Batch script to conditionally delete files

Owners of Nokia Lumia 1020 know it can be set to store captured photos at full resolution, but the reduced size photos are also stored. I would like to have a script to automatically delete all the ...
1
vote
1answer
15 views

Bulk SFTP download of files specified by URL preserving 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
10 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 ...
1
vote
3answers
120 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 ...
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
1answer
323 views

Adding key to registry

I would like to create a batch file, that will add registry key, not manually, but full automaticly by .BAT file. This link goes about adding everything but not the key. This link shows how to add ...
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 ...
1
vote
1answer
20 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!" ) ...
-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= ...
2
votes
4answers
3k views

Make a batch file find duplicate file names with different extensions, and actions on the results

What I want to do is have a batch file search folders, and subfolders, for matching file names that are ending in .mp3 and .wma and delete or move the *.wma duplicates. Below you'll find what I have ...
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 ...
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 ...
2
votes
1answer
73 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
30 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
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
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 ...
0
votes
0answers
14 views

Calling batch files and deleting the root folder [closed]

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 ...
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 ...
3
votes
2answers
204 views

Normalize and remove silence from mp3s

I have a large number of audio files, each of which contains the pronounciation of a certain word. I need to batch process these files such that they all sound equaly loud when I'm finished with them. ...
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
21 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: ...
1
vote
2answers
5k views

How to create a desktop shortcut from a batch file

I know there are many posts on this issue but there is a minor twist to what I need to do. I can figure out how to create a shortcut with an argument like this: "C:\Program Files\My App\App.exe" /s ...
2
votes
1answer
2k views

Batch scan a lot of pictures

I have a lot of pictures to scan. Is it possible, using linux and xsane, to write a script so that the computer will keep scanning, giving incremental filenames to the resulting files ? I'd really ...
28
votes
8answers
48k views

How to auto detect text file encoding?

There are many plain text files which were encoded in variant charsets. I want to convert them all to UTF-8, but before running iconv, I need to know its original encoding. Most browsers have an ...
3
votes
5answers
7k views

How to overwrite the same line in command output from batch file

I want to write some status info that replaces the last line when I do something. In following example bat file, I want the text Step 2 to overwrite Step 1 on the same line in the command output. ...
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 ...
8
votes
5answers
10k views

Exit batch file from subroutine

How can I exit a batch file from inside a subroutine? If I use the EXIT command, I simply return to the line where I called the subroutine, and execution continues. Here's an example: @echo off ...
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 ...
1
vote
1answer
2k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
1
vote
1answer
7k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
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
24 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 ...
1
vote
4answers
13k views

How can I get the current system date and time using a command prompt?

I would like to get the current system date and time using a command prompt. How do I get the date to be in a specific format, MM-DD-YYYY HH:MIN AM/PM?
0
votes
1answer
87 views

Batch file needed to query a specific location

I am not a coder and would appreciate any assistance. I need a batch file which will query a NAS location and produce an output of the upper level directories (and maybe the second level down). The ...
-2
votes
1answer
423 views

Batch file delete duplicates, nested once deep

Yes, I did see: Delete duplicate files with Windows batch file But I was unable to modify it to check each subfolder of that I specify, I have: del "c:\...\Pictures\*\*-001.*" But it doesn't like ...
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
2answers
99 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 ...
2
votes
8answers
11k views

Why does the PING command in my batch file execute in a loop?

I created a .BAT file in Windows 7 that has the following line: PING XXX.XXX.XXX.XXX -t (XXX replaces the actual IP number). However, when I double click on this batch file, I can see the PING ...
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
3
votes
2answers
3k views

Batch convert all html files in a directory into pdf files in windows?

I see one solution so far: http://www.htmldoc.org/ Are there any more out there which are suggested?
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 ...
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 ...
3
votes
1answer
50 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 ...
6
votes
5answers
6k views

how do you make a letter password generator in batch?

I'm having a hard time figuring out how to make a password generator with random letters in it. For example, ASWED-ASDWAD-EFEST. So far I can only make random numbers by using the code @echo off ...
0
votes
2answers
2k views

Batch convert PDF versions?

Does anyone know of a (free, Windows) way to convert/change the version numbers of a batch of PDF files? A command line tool would be ideal, since it can automated rather easily, but the only ones ...
0
votes
1answer
488 views

How can I print a batch of files with custom printer settings?

I have a collection of A3-size (tabloid size) PDF drawings which I would like to print as a batch. The particular printer I am using doesn't automatically check the paper size of the document - it ...
1
vote
3answers
297 views

How to Delete a file at a specified date

I want to delete a file (a .exe) from a folder, after a specified date, say 25/Feb/2010. How can I use scheduled tasks and batch files for this. I am not sure whether the code below work : @ECHO OFF ...