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. Please use the tag [batch-file] for that.

learn more… | top users | synonyms

2
votes
1answer
318 views

ffmpeg | batch convert | make same filename

How would I use ffmpeg to create a batch convert file for sample rate conversion, such as: $ ffmpeg -i *.wav -ar 22050 *.wav Take note, that i'm only doing a sample rate conversion, but in the end ...
2
votes
1answer
119 views

How to crop images in batch and then re-crop the same way

I am getting automatically generated screenshots of our application, some of which need cropping, since they may only relate to a pop up window or some small portion of the screen. Is there some way ...
2
votes
1answer
758 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, ...
2
votes
1answer
114 views

Batch Directory Name is too Long

This question was posed as an answer to this thread where running FOR loops in batch with UAC elevation code generates voluminous errors involving non-existent directories. Here is a screenshot of ...
2
votes
1answer
48 views

check and warp newest files added

How am I going to automatically check all the files that were added to the directory and then warp it immediately?Because everyday I am downloading hdf files and warping it from time to time is a ...
2
votes
1answer
167 views

How to open multiple TGA files then save them compressed as 24 bits in Photoshop?

I have a huge amount of TGA files from the game Counter-Strike (environment files such as sky, grass, water etc) and they are pretty big. There were some other TGA files that I manually opened and ...
2
votes
1answer
1k views

batch script to “scan for hardware” in Windows 8.1

There is this issue with Wifi on the Surface Pro 3 that can be easily fixed with a script that does the equivalent of running "Scan for hardware changes" in the Device Manager. This script will be ...
2
votes
1answer
343 views

Windows Batch - Move files to folder parent & Remove empty subfolders

I found several such questions and tried to adapt the answers to my needs but no luck so far. I'm trying to create two context menu entries in Windows 7 that would: Move all files from subfolders in ...
2
votes
1answer
498 views

Batch change filetype associations on OS X

I just installed Sublime Text 3 beta and would like to re-associate all the filetypes I have linked to ST 2 with ST 3. Is there any way to perform this as a batch operation? For example: $ ...
2
votes
1answer
109 views

Rename files with a batch but only the ones ending on “*D.txt”

I want to rename all the files in a single directory but only txt-files that end with a D. Here is what I tried in a batch... but both didn't work. -----try1----- @echo off set ...
2
votes
1answer
610 views

Making PowerShell assume the working directory of a called Batch file

I regularly work interactively with a batch script that I can't easily change. One of the features of this script is as a navigation aid - it understands my company/product's code layout conventions ...
2
votes
1answer
145 views

How to register a macro programmatically?

I have like 700 machines in which I need to deploy a new macro we have created. Is there any way to do this via cmd?
2
votes
1answer
524 views

Programming a little file to change between headset and monitor speakers?

I think there is a way to write a little file in Batch, I believe to change the default sound output system. What's the language that's written in and how can I write it (I am running Windows 7)? ...
2
votes
1answer
139 views

Batch Script for backup

I need a batch script that will zip up all files in a particular directory and save it to another directory in a YYYY/MM/DD-HH/MM/SS format. I've seen things similar but not sure about this. Thanks! ...
2
votes
1answer
501 views

cmd to change Java settings

Is there a way to have a cmd add an exception to the proxies in Java? (Control panel > Network settings > Advanced nework settings) It should be something a user can double-click or wrapped in a ...
2
votes
1answer
247 views

Need assistance making a batch file for renaming files in separate folders

Ok, here's one for you. I'm trying to use a batch file to rename a bunch of files, but none of them are in the same folder as the batch file itself. The command prompt keeps telling me that the ...
2
votes
1answer
71 views

How do I add leader titles and tails to a large batch of videos with Final Cut Pro?

I have around 250 videos, all in the same pixel size. I've been asked to add a leader (with title and date) and a tail with copyright information. The title and date changes depending on the video, ...
2
votes
1answer
701 views

Cannot use the F12 key as a shortcut key in Windows 7

I've got a batch file that I am trying to launch from the keyboard. I created a shortcut for this batch file and can successfully use F1-F11 as the Shortcut Key. I can set F12 as the shortcut key, ...
1
vote
1answer
17 views

Run Atom using a bat file after changing directory

I have writen in my bat file cmd /k cd /d"C:\Users\amanz\Desktop\Introduction - Computing\Java files" call atomer.bat right now, it just seems to change the directory and stops right there. It ...
1
vote
1answer
42 views

Automatically find installation directory of application and run batch command inside folder

Basically, assume I have program called ABCD installed. I want to automatically find out where exactly (which folder) it is installed (sometimes not installed in C drive, that's why), and run a batch ...
1
vote
1answer
278 views

How to change a process name in the task manager via batch

How can I start a program via batch and change it´s name in the Task Manger. For example, start "program" /HIGH "%~dp0\program.bin" In the Task Manager it shows program.bin, but can I change it to ...
1
vote
1answer
50 views

Batch substitute for wifi on/off toggle win 8.1pro - automate hosted network

I'm using netsh to enable an hostednetwork AP and it works fine, but i wanted to make a step forward and try to query and enable the wifi adapter. Then the problem - if wifi toggle is switched off it ...
1
vote
1answer
64 views

Create a batch file to execute tasklist and append its output to log.txt

I'm trying to create a batch file to execute tasklist every 3 minutes and log it into log.txt. I'm very new to batch files and would like to know where I've gone wrong in my batch file. @echo off ...
1
vote
1answer
26 views

Windows Batch Call Command not passing variable value?

I'm getting strange output when running my script: @echo off setlocal pushd "%~dp0" set Mode=batch if "%Mode%"=="batch" call :BATCH echo %Loc% pause>nul exit :BATCH set "psCommand="(new-object ...
1
vote
1answer
110 views

Batch script to ping an ip range?

I'm trying to write a batch script (psexec is also an option) to scan a range of IPs 192.168.1.1-255 and as output, would like a csv file, something like this: column A column B ...
1
vote
1answer
48 views

How to run a remote bat file on a local computer

I need to run a batch file, that is stored on a server, locally on a windows 8.1 machine. I can run a shell script in OS X with a curl: cURL "file path" | sh is it possible to cURL in powershell in ...
1
vote
1answer
457 views

Is there a windows batch command that can copy files from a Linux server to my local machine?

I have been using the following SCP command: SET cfolder=c:\temp\%currentdate% scp -r username@servername.com:/opt/logs/test.log %cfolder%\test_K1B.log The problem with the above is that it keeps ...
1
vote
1answer
131 views

Concurrent plink (putty) instances / sessions limit?

I'm controlling a lot of devices on which i need to batch run commands, it's working just fine sequentially but if i try to run all of them in parallel i'm getting plink network errors. I'm pretty ...
1
vote
1answer
61 views

Terminate endless running process in a batch file

I am trying to find a way to automate a process with a batch file. The process is one that logs output to a file indefinitely until it gets a break (ctrl+c) command via the keyboard. I can't seem to ...
1
vote
1answer
21 views

change %i to %%i and nothing happened

I have a file with two columns of file name. The following command lists the content of the file. (for /f "usebackq delims=;" %i in ("C:\RENAME-ALL.txt") DO ECHO %i When I put the same command in ...
1
vote
1answer
70 views

Mass rename folders in Win 7

Suppose a folder named 1234-xyz. I would like to rename this folder to xyz - 123. I have a ton of these folders, so going through them one by one doesn't make sense. What is the best way to do this? I ...
1
vote
1answer
237 views

Windows Batch to read TXT and parse lines into JSON

I've made a good deal of headway by searching this site and learning the ridiculous language that is Windows batch scripting, but frankly I'm stuck. The sample below is from our lab's old radiometer ...
1
vote
1answer
101 views

Delete batch while it is open

I have a batch file that I want to run and after it runs code I want it to delete itself. Is it possible to do that? I've already tried using del and using rd to delete the directory where the file is ...
1
vote
1answer
464 views

How can I create a shadow copy in windows7/8 in a batch file?

On server operating systems I can (and do) create a shadow copy of a volume and mount that copy using mklink before copying a folder that almost always has open files. See below for Q&D example. ...
1
vote
1answer
128 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 ...
1
vote
1answer
167 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
1answer
130 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
67 views

Looking to rename a batch of cab files to lowercase as well as adding their SHA1 Hash

I need a batch script to rename all the files in a folder their lowercase equivalent, with their SHA1 hash added at the end after an underscore. Example: I have a file called: ...
1
vote
1answer
581 views

Preventing my pc from being shut down remotely

In my college, we use Microsoft Server 2008, and each student has their own account. In my class, students discovered that they can remotely shut down each other's PCs using cmd (the fact that we ...
1
vote
1answer
36 views

I would like to batch change one colour in a group of PNGs. Mac - freeware software

I hope someone would be able to help me. I have a group of icons in png format. They are all transparent backgrounds with one colour for the actual icon. I would like to change this colour in all of ...
1
vote
1answer
139 views

How can I get ConEmu to open more than 30 tabs?

I have a .bat file which opens 100+ consoles, but I need them in new tabs. Problem is, ConEmu has a max of 30 tabs. I can do this with regular cmd, but its 100+ new windows. I'd prefer them in tabs ...
1
vote
1answer
202 views

Running a same batch file again every 30 minutes

I have a batch file which is just a simple batch file. You can take any example. How can I keep the batch file running in a loop from start to end again and again, till the specified time is met or ...
1
vote
1answer
75 views

Multiple Find/Replace queries over multiple files: replace one by one

What I want is this (Software can run on Linux or Windows, both are available): Supply a list of files in which strings should be replaced (wildcards ideal, but not mandatory) Supply a list of ...
1
vote
1answer
250 views

Creating an account creation script to create new users in Windows Server 2008

I need to be able to make an account creation script that will create a new user in the Domain Users group, set its password, roaming profile, and login script. The input will be first name, last ...
1
vote
1answer
91 views

Need help to replace one tag with another

Anyone can help me on EmEditor Macro? id="131" restype="x-p" phase-name="pretrans"><source>Good morning</source><seg-source><mrk mtype="seg" ...
1
vote
1answer
4k views

Batch file to change Desktop background

I want to write a batch file that changes the Desktop background. This is what I have so far: Reg Add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d C:\background.jpg Reg Add ...
1
vote
1answer
274 views

Batch convert of Word docs with images to HTML

OK, here is my situation: I made a knowledge base for a company, they have about 500 word documents with screenshots in them explaining procedures and such. I can easily paste the text into the cms ...
1
vote
1answer
673 views

batch converting from XLS to windows CSV on a mac

I'm using OS X and have lots of these XLS files that I need to format as a batch operation. I need them in "Windows CSV" format, but I can only seem to get them batch converted to Mac CSV... I am ...
1
vote
1answer
115 views

How can I recursively identify non-searchable PDFs and copy them to a folder?

Further to an earlier post which provided a script solution: From my question it may be possible to tell that I am a computer user and have no programming knowledge. I have hundreds of searchable ...
1
vote
1answer
201 views

What is the significance of a dot after a command in Batch?

When writing Batch files (.bat), ECHO. is used to print a blank line to the screen. How does this work? What is the significance of a . after the command name? From the tests below, it seems that ...