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

8
votes
2answers
677 views

How to test thousands of MP3 files whether they're playable?

I just managed to recover lots of mp3 from a bad HDD. Is there a way to test all these files if they are playable? I don't want to hit next a few thousand times.
1
vote
5answers
22k views

Batch script for unattended install of a software

I've got a few programs i need to install every time i reinstall a computer office 2003 Pro office 2007 compatibility pack Adobe acrobat Adobe flash but i hate to do this every time on every ...
3
votes
0answers
13k views

avoiding console window display when scheduled task runs batch file

I have a small batch file which xcopies some files from one folder to another which I've scheduled (via windows scheduled tasks) to run every 1 hour: @echo off xcopy c:\foo c:\bar /E /C /F /Y Since ...
0
votes
5answers
147 views

Need an idiot-proof picture resizing program for Windows [duplicate]

Possible Duplicate: Program to automate image resize My friend needs to resize some pictures as part of a web publishing job, but he is rather clueless when it comes to computers. I am in ...
5
votes
1answer
4k views

Scheduled task to map a network drive runs, but doesn't map the drive

I have a task set up to run whenever the computer is logged onto that deletes all network folders and maps a network drive. Here is what is in the batch file: @echo off net use * /delete /y net use ...
3
votes
4answers
1k views

Batch deletion of smaller files from group of files via unix command line

I have a large number (more than 400) of directories full of photos. What I want to do is to keep the larger sizes of these photos. Each directory has 31 to 66 files in it. Each directory has ...
1
vote
1answer
6k views

Set Permanent System variable through bat file

This is a follow-up to Set Permanent Environmental Variable in Windows XP. I want to change System variables in XP through running a bat file. But when I run it I get the error "Too many command-line ...
6
votes
1answer
14k views

Set Permanent Environmental Variable in Windows XP

I want to set environmental variables permanently through a batch file. Is there a command to set Permanent Environmental Variable (other than SETX) for Windows XP service pack 3? command SETX ...
1
vote
2answers
1k views

Using Terminal Services 'query' in batch file

I have a batch file that checks several of our servers for a user. From the command: query user %userID% /server:ServerName I want to capture the output before it goes to the screen. Is there a ...
0
votes
2answers
4k views

Visual Studio 2010: Is it possible to force editor to use ANSI rather than UTF-8?

I am having issues with some files in automated processes, specifically with batch files and sql files. Visual Studio seems to create these as UTF-8 rather than ansi and adds some kind of special ...
1
vote
2answers
2k views

How to write a script to move files from one FTP server to another?

What are some good ways to move file from a development site on a linux server to another linux server (which would be production). I will be working from a Vista system. Basically, I'd like to just ...
32
votes
1answer
31k views

Is there an equivalent to /dev/null in Windows?

If I want to ignore stdout of a command, I do this on *nix: myprog > /dev/null How do I achieve the same on Windows (in cmd or a batch file)?
2
votes
1answer
95 views

Office 2007: “Save as <old format>” batch conversion

Is there something I can give a "novice user" to convert all Office 2007 documents in a folder to a previosu format?
1
vote
2answers
352 views

find in windows (batch files)

Does the find command in windows (command line) work to search inside of excel files?
0
votes
1answer
265 views

logging into network share

I am logging into a network share through a batch script to start a test I can get the shared program logged in but then up comes the windows prompt "run" or "cancel". Not all of the machines have ...
1
vote
3answers
1k views

How do I set up a desktop shortcut to a batch file which will run as administrator

I want the batch file to run and launch some programs, all of which need to be at administrator level.
1
vote
1answer
2k views

Start a batch file silently from the autorun.inf

Is it possible to start a batch file silently with no window created from the autorun.inf?
1
vote
1answer
76 views

How can I launch different programs silently based on the OS version?

I have two versions of my autorun.exe, one each for: Windows 7 Older OSs I need a way, (other than using .net or VB), to start silently with no window, check for the OS version, and start the ...
6
votes
2answers
4k views

Notepad switches

What command line switches exist for Notepad? I found a few: /A <filename> opens file as ANSI /W <filename> opens file as Unicode /P <filename> prints filename Are there others?
1
vote
2answers
260 views

Mac OS X: Run app on every file in folder

I want to use jsmin to minify every js file in a directory, and js files in subfolders as well. I would want to use the compiled vers of jsmin found here: http://www.ejeliot.com/blog/73 What is the ...
0
votes
2answers
2k views

How to repeat action for all the files in a folder?

I've created an action in photoshop to create watermark for my images and its working fine but i want to repeat it for all the images from a specific folder. how can i do this?
0
votes
1answer
293 views

How to do simple multitasked loop processing over filenames with PowerShell?

I'm batch transcoding some 50 GB of video files on a USB hard disk which is connected to a wlan router. The drive is mapped as a network drive on my Windows 7 laptop. The speed handicap of the wlan ...
8
votes
8answers
58k views

Spaces and Parenthesis in windows PATH variable screws up batch files

So, my path variable (System->Adv Settings->Env Vars->System->PATH) is set to: C:\Python26\Lib\site-packages\PyQt4\bin; %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem; %SYSTEMROOT%\...
2
votes
2answers
6k views

Download a File in a Batch File [duplicate]

Possible Duplicate: Download a file via HTTP from a script in Windows I've never done any scripting on Windows but now I need to write a batch file that downloads a file off the Internet (...
2
votes
3answers
5k views

Batch print files in alphabetical order

I have a folder with hundreds of small PDF files to print. How can I make a batch job to print them out in alphabetical order?
9
votes
1answer
13k views

Run a batch command for every file in a directory

I have a Java program working with this syntax: command.jar namefile I have to run this program for 1600 files in a directory. How can I run this command for every file automatically? Is there a ...
2
votes
3answers
539 views

How do I batch process RAW images based on EXIF data in Photoshop?

I use Photoshop to batch convert my RAW files to JPG. With my particular camera lens, if I open the aperture all the way to F1.7, there is noticeable vignetting; images where the aperture is stopped ...
7
votes
1answer
26k views

Why is xcopy returning “invalid number of parameters”?

Under some circumstances, xcopy will return the error Invalid number of parameters without giving you a clue as to what’s going on. The usual solution for this is to be sure that your filenames are ...
2
votes
2answers
3k views

Copy files to all subdirectories

I was planning on using a command like this FOR /R %f in (".") DO xcopt test.txt %f to copy a file into all subdirectories of a folder. This works fine when I write the file into the command ...
4
votes
3answers
13k views

Batch Removing Newline in txt files in Windows Command line (cmd)

There are unnecessary new lines in txt files which i am merging during batch processing. I am thinking fof first removing all new lines and then inserting only one. how can i do that in batch file
0
votes
2answers
9k views

Any way to add new line at end of multiple text files

I am merging (concatenating) many text files into one, but I have the problem that they don't have a new line at the end of the text. Is there any way to append a new line to all files using Windows ...
80
votes
9answers
254k views

Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files?

I have a batch file that outputs a text file. I thought it would be nice if I could zip it up too. This will be used in an uncontrolled environment, so I can't make assumptions about the presence of ...
2
votes
2answers
2k views

Convert Music Library to Ogg Vorbis without losing Tag Data

This Question is pretty much the same as this one: Convert Ogg Vorbis to MP3 with Metadata only in reverse I want to convert all my Music Library From MP3 (some are WMA or M4A, but those can be ...
0
votes
1answer
397 views

Validating quality and sound of mp3 files

I want to check the quality and sound volume of all my mp3 files. Are there any processes to validate them in bulk? I don't want to open each file individually and play them to check their quality ...
2
votes
1answer
215 views

Can I make a shortcut to open a new note in Outlook 2007?

I'm looking for a command-line style way of opening a new note in Outlook 2007. It'll be executed from a .bat script. Basically, is there some switch on outlook.exe or similar that I can use to get ...
2
votes
3answers
2k views

Bat file that copies files from a folder with changing name as YYYYMMDD

Can anyone point me in the right direction? I need to schedule a bat file that copies files from a folder whose name changes daily and I need to copy those from yesterday's folder. I.e. if today is ...
4
votes
1answer
1k views

I need to batch convert Word Perfect documets (.wpd) to word (.doc)

If I do a save as from word perfect, the formatting is retained, and everything is all good. if I try and open the files in Word 2007, the tables get all screwed up and there are some issues with the ...
18
votes
1answer
129k views

Batch file that runs cmd.exe, a command, and then stays open at prompt

I would like to make a batch file that: Opens cmd.exe Within that Command Prompt runs net use to display mapped share paths Leaves the window open so that I can run additional commands if I wish to ...
1
vote
3answers
62 views

Create mix CDs from MP3 files

How would you write a script (preferably for the Windows commandline) that: Examines thousands of MP3 files stored on a single drive (e.g., G:\) Randomizes the collection Populates a series of ...
0
votes
1answer
3k views

'Net Use' Command Works in Win 7 but not XP. Why?

I wrote a script to dynamically map drives for our users. The script it generates is a simple 'net use' command that looks like this: net use * https://oursite.com/bobs_stuff This works perfectly ...
7
votes
1answer
5k views

Get Batch file to run relative to actual folder, not shortcut

I've created a few batch files that moves files around relative to the folder the batch file is in. I've added the folder to my Taskbar using Toolbars => New Toolbar..., however now when I run the ...
12
votes
7answers
68k views

Enable/disable wireless interface in a bat file

Is there a way to enable/disable a wireless network interface via the command line (so I can put it in a bat file)? When I'm in the office I use a wired connection, but Windows still occasionally ...
4
votes
2answers
2k views

Batch-file, running application in order vs. all at once

If I create a batch file (batch.bat) and typed this in: "C:\Program Files\WinRAR\WinRAR.exe" "C:\Windows\System32\notepad.exe" The applications in question would run in order, first WinRAR would ...
1
vote
2answers
353 views

How do I computationally slice an audio file into small samples?

I need to cut audio files into small samples of even length. What I need is basically a batch processor for audio that does it and names the slices numerically. I'm using OSX and have found Audio ...
4
votes
1answer
574 views

Win 7 and .bat files

Does Win 7 support .bat files like WinXP? For example, will Win 7 run the following file: Start "" "C:\Documents and Settings\HDSF Staff\My Documents\My Dropbox\Texter\texter.exe"
3
votes
1answer
1k views

Is there a reference to all Windows “errorlevel” by command?

Is there a reference to all Windows "errorlevel" by command? Looking for a page that defines all error levels, by command.
2
votes
5answers
13k views

How do I check the outcome of a ftp script with a bat file? [closed]

I have a .bat file that runs a ftp script, grabbing files from the server and copying them to my machine. Works great. I now want this .bat file to report if any of these errors occured. If you ...
4
votes
3answers
3k views

What is the difference between running a .bat from cmd line vs. double click?

I have a .bat script with ftp commands (all in one) similar to this. See 5th down:FTP - Resolving Environment Variables - Creating FTP script on the fly at runtime and using variables within the FTP ...
4
votes
2answers
2k views

Run couchdb.bat in background/no terminal on windows?

I got really excited when I realized that there is finally a GOOD windows installer for couchdb. But I'm not excited that the server doesn't run as a service. You are provided with a .bat file that ...
3
votes
2answers
9k views

Can I specify a destination with the ftp get command?

For example, like Windows COPY "source" "target"? or is it two steps? Use get to download to current directory Then do a copy to move to another location on my computer?