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

How to run b2sum-amd64-windows command recursively in a batch file?

BLAKE (hash function): https://blake2.net/ Download: https://blake2.net/b2sum-bin_20130305.zip The current b2sum-amd64-windows command does not include recursive option For example in windows ...
0
votes
0answers
8 views

Merging two image files together

I'm trying to figure out how to script a folder merging of a jpg and a psd together. An example of how a folder would look: AAA.jpg AAA.psd BBB.jpg BBB.psd CCC.jpg CCC.psd I'd like the images from ...
0
votes
1answer
25 views

Xcopy.exe: Hide all errors (window prompt)

I syncronize a folder on the hard drive with my USB device every time I insert it. For this I use a simple batch script that checks if the USB stick is inserted and if it is then do a sync by XCopy. ...
5
votes
2answers
29k views

Using Date and Times in a batch file to create a file name

I am running a program from a batch file, which when it is done performs an automatic backup of my MySQL database. I would like the batch file to create a different back up for each run, so I can ...
3
votes
1answer
29 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 ...
0
votes
1answer
20 views

How do you get the User Profile name in a Batch File without the complete path?

I've seen that you can use %USERNAME% to get the whole path but I just want to get e.g John Doe for use in mapping a network drive to specific folders named after the user profile names? e.g NET USE ...
0
votes
0answers
20 views

Echo Without Newline in a Windows Batch `for` Loop [duplicate]

Please note: This question is not about how to echo without a newline. It's about to pipe a variable without a newline and store the result in another variable. Please don't mark this question as ...
0
votes
1answer
38 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
140 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
27 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
20 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
15 views

Jscript executing batch file that incorporates setting of environment variables [on hold]

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

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

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
14 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
327 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
27 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
11 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
16 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
80 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
32 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
27 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
27 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
205 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
22 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
49k 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
27 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
29 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
29 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
426 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
33 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
35 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
106 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
19 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?