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

3
votes
1answer
9k views

Why does 7-zip.exe return “Access is denied” with these arguments/parameters?

In a batch file: START "7-zip" /D "C:\Program Files\7-Zip\" "7z.exe" a -o <F:> testArchive F:\test Or, alone on the cmd as: 7z.exe a -o <C:\users\user\Desktop> testArc ...
1
vote
1answer
218 views

How to give and pass input between separate programs?

There's so many individual, useful programs out there who's source code isn't available, some of which would integrate beautifully with each other! The only problem is I don't know how to enable ...
1
vote
1answer
568 views

Environment variable set in batch isn't expanded in shortcut

How can I make my environment variable (set in batch file) visible in application executed right after setting this envvar? Here's the scenario that I use: In my external script (not quite ...
0
votes
1answer
496 views

Basic batch file error

I'm writing my first batch file and have two basic questions. I'm using Windows7 and wondering if there is an easy way to run something as an administrator? At the moment I just type cmd into the ...
1
vote
1answer
1k views

How to rename and move files to new directory

I would like to rename a file that is uploaded to another server from extension .txt to .txt_mvd and move to a different directory for archiving in a Windows batch mode. Can anyone help with what the ...
1
vote
1answer
994 views

Batch producing PDFs from a sequence of URLs/multiple URLs

Does anyone know of a way of making PDFs from a sequence of URLS/multiple URLs for webpages? For example, I want to print individual PDFs from a batch of webpages via their URLs. Is there an ...
3
votes
1answer
132 views

Batch-file to remove part of a number before passing it to an application

I've been racking my brain trying to get my softphone to dial numbers on web pages. I've gotten the browser to pass the number through to the softphone, but it adds tell:+ to the number and won't call ...
3
votes
1answer
928 views

how do I make a batch file that executes this command

I am trying to make a batch file that executes the following DOS command: exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" "C:\Users\Tom\Desktop\belvedere" (FYI, exiftool.exe is a script ...
0
votes
1answer
267 views

Batch transpose a comma separated file

I'd like to reorder a file with a batch from this schema: Default Web Site;anonymousAuthentication Default Web Site;windowsAuthentication Daisy;anonymousAuthentication Daisy;windowsAuthentication ...
4
votes
2answers
5k views

How do I open a second Skype instance with a Batch file?

I want to launch a 2nd Skype instance from a Batch file. I have done that successfully with the run window: "C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary But for the life of me I ...
2
votes
1answer
1k views

Convert Mathematica to PDF via command line

I am on Linux and would like to convert a bunch of Mathematica 8 Notebooks to PDF. Is there some way to convert them on the command line? I'd like to write a makefile rule for the conversion, so that ...
3
votes
2answers
119 views

Batch processing two sets of files

Assume that I have two sets of files foo_A_uid.bar and foo_B_uid.bar. Each set contains (a known) number of files. Now, I want to process corresponding pairs using some tool (ImageMagick in my case), ...
1
vote
0answers
97 views

Windows: Add samba printer at each logon

All, I currently have a samba printer shared at \\%ServerIP%\Printer1 which requires credentials to connect. Users can easily add the printer with the printer wizard. However, the printer will stop ...
0
votes
2answers
340 views

BAT file returns error but works correctly

I have the following BAT file which used to work without any error but for some reason it's started to return an error every time I run it. Here's the BAT file: C: start "" "C:\Program Files ...
0
votes
2answers
982 views

Batch convert AppleWorks files into PDF within originating folder, delete original file?

Probably AppleScript is the way to go with this - I have found scripts online that do this, but snag on oversize printable area and put files in the same folder - I need files to stay in the folder ...
2
votes
2answers
17k views

How to input automatically in BATch file on DOS?

I want to run a command that prompt for an argument, can I do a BATch file that run this command and then wait for a sec and "write" or "type" automatically (like a live person) the argument? Thanks.
4
votes
3answers
3k views

Batch convert .wav to mp3 and ogg?

I have a few hundred .wav files that I need to convert to both ogg and mp3 format. Is there a way that I can do this in batch either from Audacity or from some other command line tool?
2
votes
2answers
1k views

How to batch rename files based on file header/metadata in Windows?

I have a directory full of randomly named files of different types, all with no file extensions. Most are images, with some videos, and some plaintext. I've used one of the Windows versions of file to ...
1
vote
1answer
96 views

Automating music transcode

I want to be able to transcode my music library (lots of nested folders, no space) to a different bitrate. I've been doing this manually with Media Coder, but I've noticed that not every file ends up ...
0
votes
0answers
74 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 ...
1
vote
2answers
1k views

How can I batch delete all files of a certain type in a folder newer than a certain date on Windows?

So Google Music decided to download about half of my uploaded music library to my local music library when I told it to download my purchased music, so now I have a bunch of MP3s I need to delete ...
0
votes
1answer
10k views

Opening a program as a different user (with /savecred) fails

What I'm trying to do is run a second instance (my personal account) of dropbox. I have a second user account setup, Dropbox installed, the Dropbox folder on the second acct shared properly. ...
2
votes
4answers
2k views

Shutting down computer automatically after a download finishes

I am downloading the Visual Studio Trial version and it seems like it will take an hour or so to finish. I would like to shutdown computer automatically after this download finishes. So is it ...
2
votes
2answers
2k views

xcopy deletes destination folder and copies 0 files

I am trying to write a batch file to back up my locally stored files to a network drive. Some folders are being successfully copied, but others are not; instead the destination folder is being deleted ...
0
votes
2answers
2k views

Validate IP addresses in user input with batch script

Related: Script to assign and remove arbitrary secondary IPs to an interface I'm trying to augment the script in the above question, by validating the user input so that the script will only ...
0
votes
1answer
416 views

Windows batch script for tshark

I am trying to make a Windows batch script for tshark. here is the tshark command I use tshark -V -r file.pcap -T fields -E header=y -E separator=% -e wlan.sa -e ip.src -e wlan.da -e ip.dst > ...
2
votes
3answers
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 ...
1
vote
1answer
2k views

Why doesn't the bitsadmin.exe download manager work for me?

Why does this bitsadmin command fail? bitsadmin.exe /transfer myDownloadJob /download /priority normal http://mirror.anl.gov/pub/ubuntu-iso/DVDs/ubuntu/8.04/release/FOOTER.html c:\Temp It seems ...
2
votes
2answers
5k views

Batch delete : Access is denied

As the title suggests, I'm having issues with the del command in a batch file. When it gets to the delete step I get the message "Access is denied". My batch command looks something like this. set ...
1
vote
1answer
371 views

batch file to monitor folder and copy images locally

Looking for a batch file to run on a windows scheduled task to: Check a network location for images If there are pictures to copy, copy them to a local folder Delete the pictures from the network ...
0
votes
1answer
240 views

Copy all files to one folder using CMD

I want to collect all images and movies in one folder. I try to type in Windows XP CMD: set nowy="c:\nowy" mkdir %nowy% for /R %f in (*.mpg *.swf *.jpg) DO (copy "%f" %nowy%) but it seems that if ...
2
votes
1answer
1k views

Script to assign and remove arbitrary secondary IPs to an interface

I'm trying to figure out how to write a script that will let me arbitrarily assign and remove a secondary IP address to a system. I'm most comfortable with batch scripting, so I'd rather focus on ...
-1
votes
2answers
2k views

Copying a set of local files to FTP server

I want to copy a set of local files to ftp://124.30.124.230 (it will ask username and password). I want to do this work in 400 systems. I have planned to do this work by creating a batch file and ...
1
vote
2answers
1k views

How to issue an rsh command to run in the background from a batch file?

How to issue an rsh command to run in the background? Example: Within a (Windows) batch file I call rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh, which runs on a remote unix machine. This script ...
13
votes
4answers
15k views

How to batch combine JPEG's from folders into PDF's

I have a about 500 folders with images inside. Is there a way I could batch convert this so that I get .pdf files that contain all images inside as pages? EDIT: There should be 500 PDF's created, ...
0
votes
4answers
4k views

How do I do a find-replace on a windows batch file string?

I want to change a variable from some\original\path to some\replaced\path by doing a find-replace and changing the "original" part in the path. set x=some\original\path set y= ???? (y is now ...
1
vote
4answers
7k views

How can I prevent to run same batch file twice to allow only one instance?

I need to detect if a batch file is already running or not. In the batch I simply loop and repeatedly do some tasks. Sometimes the loop cannot complete. I run the batch file at a scheduled time. When ...
1
vote
1answer
3k views

How can I recognize a running batch file in task manager?

I run a few batch files as SYSTEM (as services) and they appear as cmd.exe in tasklist. Sometimes I need to terminate one of them but I cannot decide which cmd.exe to terminate. Plus; I run many ...
2
votes
1answer
16k views

Batch File - Delete Shortcut From ALLUSERS Desktop

In Vista/7, if I try to delete a shortcut using the following command -: del "%allusersprofile%\Desktop\MyShortcut.lnk" ...Windows sees this folder as empty and doesn't delete the file. The ...
0
votes
1answer
320 views

Illustrator batch save files to 1024x1024 png maintaining proportions

I got a bunch of ai files, that I need to save to png. Is it possible to save them with an Image output of ex. 1024 x 1024 while still maintain the proportions? The perfect solution would be if you ...
0
votes
2answers
2k views

Windows 7 Home - start a .bat file without even logging in?

I need to open a bat file as soon as the computer powers up and enters Windows. This bat file needs internet connectivity. How can I bypass logging-in or automate logging-in or something like that - ...
1
vote
0answers
944 views

How to audit “all file failures” on a system partition from command line

Directly from the source: Open Windows Explorer and use the file and folder properties function to verify that the audit settings on each partition/drive is configured to audit all "failures" ...
1
vote
3answers
1k views

Replace umlauts with regular expressions

I would like to sync several folders on my local Mac with a remote server via SFTP. As the existing umlauts appear to be problematic for my syncing software (Deltawalker), I am looking for a way ro ...
1
vote
4answers
10k views

Transferring files from ftp to local system [closed]

I want to copy a file from a FTP server and save it to my local system. I want to automate this through the use of a batch file. I've been trying this for a week, but I couldn't find the solution. ...
3
votes
1answer
8k views

How do I check many RAR files for corruption at once?

I have more than 20 gigabytes of RAR files, of which some have been damaged. Can anyone tell me how to find out which RAR files are corrupt without trying to extract each archive?
1
vote
1answer
1k views

Is the 'find' utility on Windows 7 different than the one on Windows XP?

I have a batch script that I created which works fine on Windows XP but faults on Windows 7. The script basically finds out what the OS is. wmic os get | find "Windows XP">nul if %ERRORLEVEL% ...
2
votes
2answers
3k views

Can't pipe or redirect Cygwin grep output

How do I get Cygwin's grep to work properly in a regular cmd.exe? > grep -o 'ProductVersion\".*\".*\"' foo.txt | grep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' foo.txt:ProductVersion" ...
2
votes
1answer
220 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 ...
5
votes
2answers
1k views

How to wake a network drive from batch script?

I have a batch script which runs a robocopy. It is failing because the drive is not awake. In windows explorer, doubling clicking on that icon "wakes" up the link and the cross disappears and the ...
1
vote
2answers
286 views

Remotely running batches on a Windows PC

I want to remotely control my home desktop PC (running Windows 7 Professional), mainly to perform the following tasks: Downloading email attachments, and sending emails with attachments Running ...