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

0
votes
2answers
2k views

pdftk utility and batch file

I cant for the life of me figure out what I'm missing. I have the following batch file: As you can see, when I run this batch file from my desk against a mapped drive it runs just fine: When I ...
11
votes
6answers
24k views

How to make 7-zip do a whole bunch of folders

I got a bunch of pictures that I had to crop into 800x600 pixels. That was easily done, but now I have to upload them so the family can see them all. Thing is, this is 500MB in pictures. I decided to ...
0
votes
1answer
1k views

Batch script: grant folder full control to users group

It should be done from command line (batch/cmd script, not PowerShell) as part of post-install like event I tried cd C:\ProgramFiles\AppDir\Settings CACLS /T /G BUILTIN\Users:F But it didn't ...
2
votes
3answers
9k views

how to send an email from a windows batch file?

How can I send an email from a Windows batch file, or otherwise receive notice of success or failure of a batch file?
3
votes
3answers
11k views

Adding Day Of week to file name in batch file

I want to run a daily incremental backup and append the day of the week to the file name so I end up with: backup_mon.bak backup_tue.bak etc. Not really bothered about what exactly is appended - 0 ...
0
votes
3answers
190 views

Extracting *.csv from a hundred zips and appending results

What would be an efficient way to extract only all of the *.csv files (not other files inside) from inside a hundred zip files in a single directory? Then I need to make one large file with each CVS ...
0
votes
1answer
2k views

Batch Conversion of PaperPort MAX Files

I've got a library of MAX files from an old Visioneer Scanner that used ScanSoft PaperPort. I don't have the PC that I used to scan them anymore, and I don't have the CD for PaperPort. Does anyone ...
4
votes
3answers
8k views

Windows xp command to search for files

What is the easiest way to search for files from a command line on Windows XP? I want to look for files created since a certain date, bigger than a certain size, or on a certain drive. Ideally I ...
9
votes
2answers
24k views

Batch convert multiple PDF to Image on Mac

What would be the quickest way to convert a bunch of pdf files to jpeg files? I know I can open Preview and Save As image, but that could take a long time.
-1
votes
1answer
5k views

Run this bat file with admin rights

I have written a simple bat file to run a silverlight install at login. I have the script called via GPO and AD, but when it runs, i have the issue of admin rights and UAC. Is there a way to stream ...
4
votes
5answers
12k 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. ...
8
votes
4answers
11k views

Batch convert TIFF images to PDF?

Are there any free utilities that will batch convert TIFF files to PDF? I've tried PDF printers like PrimoPDF & CutePDF, but these seem to require a GUI click to confirm each filename. What I'm ...
0
votes
2answers
98 views

Multiple Image outputs

I'd like to output different sizes of the same image from photoshop all at the same time. For example, I have a 1920x150 banner that I would like to output into smaller sizes but the same dimensions, ...
12
votes
4answers
16k 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 ...
5
votes
2answers
14k views

How to automate photoshop from the command line

I have a tool which writes some tags to a photo. On some photos it fails, and for those I want to open them in photoshop, and resave it with maximum quality (jpeg). Ideally I would like to do that ...
41
votes
5answers
64k views

Variables in batch file not being set when inside IF?

I have two examples of very simple batch files: Assigning a value to a variable: @echo off set FOO=1 echo FOO: %FOO% pause echo on Which, as expected, results in: FOO: 1 Press any key to ...
23
votes
6answers
51k views

Using Gimp to batch convert images to another format in Windows

As implied by the title, does anybody know how to use the gimp-console-[version].exe program to batch convert images between formats (with default settings) in Windows ?
1
vote
5answers
1k views

Batch script halts after Thunderbird is opened

I want to be able to open Thunderbird from a batch script in Windows. I can do it just fine from command line: C:\>"C:\Program Files\Mozilla Thunderbird\thunderbird.exe" If I create a batch ...
6
votes
4answers
2k views

Does Windows Move command delete the file only on successful completion?

This may be a stupid question, but I'm erring on the side of caution here. If I'm using Windows command line/batch files to Move a file from one server to another and we have a network failure, what ...
2
votes
2answers
4k views

How to list all 'at' jobs without root privileges?

For listing jobs added by at and batch I use atq, but it lists only my jobs. I can run atq with root privileges and then it lists jobs from all users. How can I list all jobs without root privileges? ...
26
votes
8answers
112k views

Running bat file at startup as administrator in Windows 7

I'm currently running a startup script in form of a bat file successfully in Windows 7 (I've inserted a new registry key entry with the bat file path as value in ...
3
votes
3answers
1k views

Task scheduling Batch Files in Vista

Wondering if there is some trick to scheduling a batch file to run in Vista. I have tried almost every setting/arg I can think of with no result other than an error, or the command window opening ...
4
votes
5answers
5k views

How to join MP3 files? [duplicate]

Motivation I'm looking for a program that allows me to join a lot of mp3 files (an audio book) to a single large mp3 file. My mp3 player is able to remember the position inside a track, but it takes ...
9
votes
7answers
32k views

Do something every 10 seconds batch file

I have a batch file: arp -s 192.168.1.254 xx-xx-xx-xx-xx-xx ipconfig /flushdns How can I do these two commands on Windows XP, every 10 seconds?
1
vote
2answers
3k views

Windows Command queue?

I'm thinking if does exist some kind of software that can put in a queue a bunch of windows commands. For example I can say to first copy some file somewhere, then rename those, then delete the old ...
2
votes
1answer
118 views

Manually Backing Up Locked-down Outlook 2003 SP3

My work has a terrible implementation of NTLogins, Profiles and Outlook 2003 Service Pack 3. Everyday I have to change move and chose all kinds of stuff. I did some digging and found where some of ...
1
vote
3answers
2k views

sending mesage via net send to another pc

I am trying to send a message to another pc on my company network. I do it like net send pc14.name.com "my msg" but i get An error occurred while sending a message to PC14.NAME.COM. The ...
54
votes
17answers
223k views

Run a batch file in a completely hidden way

I'm looking for some way to run a batch file (.bat) without anything visible to the user (no window, no taskbar name, .etc..). I don't want to use some program to do that, I'm looking for something ...
5
votes
5answers
15k views

Get custom date format in command in Windows 7

I'm creating a backup script in a .bat file in Windows 7. As part of the script I create a log file. I'd like to create the log file with the following date format: YYYYDDMM_HH24MISS_backup.log Any ...
5
votes
4answers
41k views

How do I add a standard TCP/IP printer port from a command line?

Is there a way to use Rundll32.exe tcpmonui.dll,LocalAddPortUI from a command line to add a standard TCP/IP port for a printer? Or any other way to add a standard TCP/IP printer port from a command ...
1
vote
3answers
777 views

Creating Apple iPhone/iPod-Like Icons

What is the best way to create apple iPhone/iPod shaped icons, ideally there should be a website that you can upload images to and have an them shaped to the default shape, etc. Does this exists? ...
0
votes
1answer
10k views

Batch File: Hide Ping test results

I'm making a batch file that tests a Computer name and sees if it responds. However when I run it, even with the "@echo off", I still see the reply being sent and so on. How can I hide that?
1
vote
2answers
3k views

Prevent extra space when setting variable on Windows command line

When setting a variable like this: > set foo=hello && echo test then the value of the variable foo contains an extra unwanted space: > echo "%foo%" "hello " How do I prevent this ...
1
vote
2answers
8k views

Command to run an application with Administrator privileges, but NOT AS administrator (prompt with UAC)

I want to start Notepad with elevated privileges to edit C:\Windows\System32\drivers\etc\host. Notmally I would type notepad in the search box, and with the program highlighted hot Ctrl + Shift + ...
23
votes
10answers
51k views

Can a mapped network drive be reconnected from the command line?

On a daily basis I find myself in the Windows command prompt needing to access a network drive that is mapped but disconnected. I have yet to find a command that will reconnect this drive without ...
4
votes
2answers
14k views

FTP BAT file - Windows Scheduled Task

Is it possible to create a scheduled task in windows, that connects to an FTP site, and downloads all the files and folders within the root directory (or specified folders in the root directory) - for ...
3
votes
11answers
4k views

How to batch rename files copied from OSX to Windows with ':' in filenames?

This is really puzzling. I have lots of videos that were stored using Mac OS, and now I have to edit them on Windows XP. I copied files using HFSExplorer. Editing software refuses to open the files ...
36
votes
6answers
243k views

How do I make a batch file wait / sleep for some seconds?

I use a batch file to start up a few of the programs I need running in the background. Up until now, I had used the pause command to execute it after some of the other start-ups finished. I would ...
2
votes
1answer
294 views

Need to remove borders from multiple images

I have a few hundred family images and they were all sent to us with borders that I would like to remove. Thankfully the borders are all the same size of 20 pixels and they are all .jpg so this will ...
1
vote
2answers
2k views

reencode several videos with virtualdub?

I have about 50 small videos (and a few large videos). I want to convert them all with the SAME settings. Its basically change audio to X with Y bitrate, change video to xvid. and do full processing ...
4
votes
6answers
13k views

Batch file to copy folder structure

I want write a batch file that can copy a folder structure. This batch file would copy all folders in the source directory to the destination directory - the files themselves would not be copied. For ...
5
votes
5answers
11k views

Is it possible to eject a cd in a batch file on Windows XP?

I've seen a few executables/utilities that do it, and many forums that say it is not possible to do. But is there any DOS command that I can rely on in a typical XP installation?
0
votes
1answer
3k views

How can I batch-extract ID3 lyrics metadata from MP3 files?

I have a bunch of MP3 files (a few hundred) that have embedded lyrics. These lyrics show up when the files are played on an iPod touch, or in Windows Media Player with captions turned on. What I'd ...
2
votes
1answer
3k views

How to copy a text from one file into another file?

How can I copy the line of a text file (C:\dos\crusoe\src.txt) if the text meghana is in it, and paste the line into another file (C:\dos\crusoe\trgt.txt)?
1
vote
5answers
826 views

Batch convert divx to iPhone format

I am looking for free software to do batch conversions of divx video files to iPhone format. I have read the thread: http://superuser.com/questions/5784/looking-to-convert-video-to-iphone-format ...
3
votes
5answers
5k views

Free batch image watermarking software [closed]

I'm looking for a simple yet effective software to watermark a lot of photos in batch. I have to apply a transparent png watermark image on 400 photos. The program have to place the watermark at a ...
5
votes
3answers
14k views

Script to create folders in multiple directories using YYYYMMDD date as the folder name

At work every morning I have to create multiple file folders (using a YYYYMMDD date format as the file folder name) in different directories across our network for various departments. This is a real ...
2
votes
2answers
674 views

Batch download pages from a wiki without special pages

From time to time I find some documentation on the web that I need for offline use on my notebook. Usually I fire up wget and get the whole site. Many projects however are now switching to wikis, and ...
79
votes
12answers
51k views

How to supress “Terminate batch job (Y/N)” confirmation?

In cmd, when we press Ctrl+C we get the target application terminated but if the target application is called from a batch file, we get this "Terminate batch job (Y/N)" confirmation. I can never ...
6
votes
4answers
12k views

Batch convert .doc to .docx (and equivilent for other office formats)?

I wish to convert a large number of office files into the newer versions, eg. .doc's to .docx's. I need something for all of the difference MS office application filetypes. What is the best tool for ...