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

3
votes
1answer
413 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 ...
3
votes
1answer
143 views

Batch files to combine multiple files (that have parentheses in their names)

The background: I'm using IFTTT to pull DC Metro bulletins from their RSS feed into a text file for my BBS. The biggest problem is that IFTTT cannot overwrite or append to files, so I get multiple ...
2
votes
1answer
41 views

Creating a CMD Context menu to copy filepath

I created a context menu in the registry HKEY_CLASSES_ROOT > * > shell > copy > commmand > cmd /c dir "%1" /b /a:-d /o:n | clip What this does is copies the file name when I right click on a file, ...
2
votes
1answer
353 views

Find and replace hyperlinks in a PDF

I want to automate the process of finding and replacing hrefs (not the anchor text) in 100's of PDF files in a Windows 8.1 OS. I am happy to convert file formats so long as they can be re-compiled ...
2
votes
1answer
45 views

Copy list of files to new names

Windows 7 Pro I want to copy a series of files, all named "cover" from different directories to a single directory, and give them all new names. I need help with either of the below options: Option ...
2
votes
1answer
470 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
147 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
152 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 ...
2
votes
1answer
953 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
123 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
191 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
377 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
552 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
110 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
655 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
153 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
532 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
143 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
536 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
249 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
72 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
718 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
24 views

Windows Command Line - List Network Adapter Components

I'm looking for a way to, in a batch file, get a list of the components (such as NDIS drivers) in use by each network adapter on the system. Here's a screenshot of the info I want in the network ...
1
vote
1answer
26 views

Windows Batch to copy one file to multiple directories

I have a rather simple copy and paste batch job. That checks for a more recent file and overwrites it. I was trying to take a single COPY and copy it to a second directory. In simple, this Batch is ...
1
vote
1answer
23 views

Batch file append slash to the beginning to string variable

I have a variable containing a path like this a\b\c And I want to turn it into something like /a\b\c I tried like this set SLASH=/ set HOME_MF=%SLASH%%HOME:\=/% and a number of other ways, ...
1
vote
1answer
104 views

Batch command to open url and fulfill username and password

I'm currently opening a local url from batch command (.bat file) like this: @echo off start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE http://some_local_address:88 This is working fine. ...
1
vote
1answer
91 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
475 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
64 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
90 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
28 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
119 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
67 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
686 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 ...
0
votes
0answers
342 views

VirtualBox and group policy in Windows 2008

I have some batch files that start and save virtual machines on a Windows Server 2008 box. I am using gpedit.msc to fire the bats... I have added lines to write to a logs. There is a line written, ...
0
votes
0answers
400 views

Windows attrib command changes file timestamp

I have some batch file running that does the following on a directory tree with several thousand files: change file attributes, turn OFF readonly do some stuff, add new files. change file ...
0
votes
0answers
1k views

Boot from USB and run batch file

I'm trying to boot from USB and run a batch file that will mount the computer's main hard drive and will copy a file from the root directory into a specified directory on the computer's hard drive. I ...
0
votes
0answers
456 views

Shared folder as network drive, some files cannot be written

I have a folder on C:\, let's say C:\ABC, shared as a network folder as R:\ with full access (to this directory and all its contents) to all users. (Win2008R2) Inside the folder I have one specific ...
0
votes
0answers
600 views

How can I append data to a Windows registry value in a batch file?

How can I append data to a Windows registry value in a batch file? reg.exe seems to only support create/delete keys and values - I want to take an existing REG_MULTI_SZ value and append some more ...
0
votes
0answers
313 views

Rename and transfer files over network with a batch file

I have a folder C:\Data which contains continuously generated .csv files named after the date in format YYYYMMDD.csv, e.g. 20120510.csv. I want to rename and transfer all files except the one for the ...
0
votes
0answers
132 views

Copy files with start and end date specified

I have a batch script to copy a directory with files in it xcopy "C:\Test" "D:\Test" /D/E/C/R/I/K/Y But I neet the script which would copy only those files older than specified date&time1 and ...
0
votes
0answers
123 views

Is is possible to call /min name.bat?

I know it is possible to start /min name.bat, bt is it possible to call /min name.bat?
0
votes
0answers
770 views

Getting file owner on network share via dir

I have a batch file that does several things, and among them is: dir "\\network_share\directory" /Q /A:-D /S > output.txt The file then writes out lines like this: 01/01/2012 01:01 PM ...
0
votes
0answers
636 views

Command to close window from Command Prompt

I have some scripts to do some work for me on Windows 7, and one issue I have is that my most used script lives on a flash drive, clears out the Drivers folder, then opens the Drivers folder for me ...
0
votes
0answers
81 views

Create logical drives from batch

I have a need to have some logical drives that extend from my C: drive. My C drive is 200gb roughly and the two other drives P: and T: need to be 50Gb each. How can I create these two logical drives ...
0
votes
0answers
740 views

Problem with running batch file as scheduled task

I am trying to setup my rsync script to run automatically. It uses a key file for authetnication so there is no issue of missin ginput or something. I have user a. In user a's profile live a batch ...
-1
votes
0answers
27 views

How to putty ssh login and pbrun login using batch file

How to ssh login using putty, then running the pbrun with its login details, and to run a few commands using a batch file. Currently I tried doing: C:\path\to\putty.exe -load "[Sessionname]" -l ...
-3
votes
0answers
34 views

Making a batch script to find specific files and copy then to a folder

Please could someone help me finish a scriot that should under windows server 2008 R2 English: Ask user to input a text; this text should be put into a variable and used by next command (findstr) ...