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

7
votes
3answers
9k views

How can I automatically log out users from a Windows machine?

I would like to make sure that people are logged out once they're done working on a single, specific multi-user machine. Currently, the next user will just "switch user" and keep working, but having ...
3
votes
2answers
2k views

How can I batch convert multiple folders of images to PNG8?

I've got 4500+ PNG 24 images in 20+ folders that I wish to reduce the size of by converting them to PNG 8. (Aside: I've tried smushing and other png optimisations but the savings are not enough, a ...
0
votes
1answer
1k views

Copy Mac Address into Clipboard help in Windows 7

Given the batch script below. How would I be able to give me a MAC address with no dashes and add a "D" in front of it? So when I go and paste, it has a MAC address that starts with a D and there ...
2
votes
1answer
2k views

Windows 7 Batch file to Make Directory

I had a simple batch file I would use in Windows XP to create a set of specific subfolders inside a folder. I had it set up as a Right-Click context menu so that when I right-clicked on a folder ...
1
vote
1answer
14k views

batch script comparing strings inside variables

The What I'm writing a short script to push out a new line to everyone in my domains hosts file in a GPO - don't ask why we're not doing this via DNS, the reasons are both fun and extensive :) For ...
2
votes
1answer
338 views

Help converting a .bat to a .sh

I need a little help converting a short script from .bat to .sh :convertfile @IF %1 == "" GOTO end imf_copy -p %1 "%~d1%~p1%~n1.map" @SHIFT @GOTO convertfile :end @ECHO. @ECHO Done! @pause imf_copy ...
1
vote
1answer
6k views

Set Global Variable in Subroutine with IF in Windows Batch

i have the following Problem with the way the cmd Interpreter works with Variables. I can´t get it working. Can you tell me the trick ? Problem: I call a Subroutine with an Argument in Batch-File. ...
1
vote
2answers
405 views

How to create a windows user from the command line, using a password from a file

I'm in a somewhat unique situation. I am trying to create a windows user, using the command line or a batch file. I know how to do that in the basic case: net user username password /add The ...
1
vote
2answers
425 views

Possible ? - [cmd.exe < echo “foo; bar;”] instead of [cmd.exe < foo.file]

I can't find anywhere that addresses this, and I can't find a way to do it. I've got an app that I've written and I want to be able to call an app and pass it a script, and it works fine with it in a ...
5
votes
1answer
4k views

Start a program based on a wildcard in a Batch Script

I'm creating a setup script for a program developed by someone else. Their installer won't install over an existing version, so I need to uninstall any previous installations. The uninstaller is ...
1
vote
1answer
476 views

Bulk image size/save operations

I have many image files and would like few images of different sizes to be generated and saved for each. I have recorded an action that does a few resize/save for web operations but I can't figure how ...
0
votes
1answer
4k views

RocketDock System Tray Docklet

I'm looking for either a download location or a how-to on making an executable that toggles the system tray. All I need to do is create a small .exe or download one that toggles Windows 7's system ...
0
votes
1answer
4k views

Running 2 explorer.exe instances with the “RunAs” Command

I've created 2 batch files. The first called admin.bat with the lines: @echo off cls runas /env /user:ADOMAIN\Administrator "\\path\dir\explorer.bat" and the other called explorer.bat with the ...
3
votes
1answer
19k views

Change NIC speed/duplex settings in script?

I have a laptop running Windows Server 2003 SP2, with PowerShell installed. Occasionally, this system has to be used in environments where it needs the NIC manually set to 100 Mbps/Full Duplex in ...
1
vote
1answer
589 views

Cleaning up FIND header information in batch file

If I use FIND (WinXP) like this: FIND /I "blahblah" test.txt > test2.txt The first two lines are header information: CRLF ---------- TEST.TXTCRLF (The CRLF aren't visible of course). Is ...
7
votes
5answers
14k views

In Windows, a batch file with a recursive for loop and a file name including blanks

I have a folder tree, like this (it's only an example, it will be deeper in my real case): C:\test | +---folder1 | foo bar.txt | foobar.txt | +---folder2 | foo bar.txt | ...
3
votes
8answers
4k views

PDF to HTML - batch converter - most reliable and accurate free AND paid for software?

I'm look for either a free or paid-for (about 50$/40pounds) BATCH PDF to HTML converter to convert several PDF files at once. Needs to be able to handle vectored and bitmap images within the file, ...
0
votes
2answers
85 views

Batch detect text in images

Is there a tool that can batch detect text/watermarks in images and the move them to a separte folder or alert the user in some way?
1
vote
1answer
580 views

Autosupply user input to Windows batch file?

I'm writing a Windows batch file. On the ordinary command line, we'd have: mysql -u root -p dbname Enter password: [types password] show tables; Is there a way I can supply the password, and 'show ...
3
votes
1answer
300 views

Trying to launch some apps from CMD file

I'm trying to write a Windows CMD file (for Windows 7) that will launch four instances of Visual Studio 2010 with four solutions (which make up the project I'm working on right now). What I've tried ...
4
votes
1answer
3k views

Recursively resize images from one directory tree to another?

I have a large complex directory tree full of JPG images. I would like to create a second directory tree that exactly mirrors the first, but resizing all the images down to a set size (say 2000x1500 ...
1
vote
1answer
2k views

Run Windows batch file on schedule as non-Administrator user

I'm running Windows XP x64 SP2. I have a Windows batch file that with some Robocopy commands that I want to run on schedule. I created a scheduled task for it, running as a dedicated user (not the ...
2
votes
2answers
244 views

How do I automatically copy data when attaching external storage?

If I am correct to assume that once I place a DVD/disk in my optical drive (or use a USB flash drive or external HDD for that matter; for arguments sake) that this action would in effect trigger an '...
1
vote
3answers
3k views

Update MS Windows XP via batch script

Is it possible to update WXP using a batch script? Basically, I would like to run a batch script, which installs all important updates in the background accepting any dialog boxes which need user ...
1
vote
1answer
858 views

Help with batch file to start Powershell in specific directory & retain settings

I'm running Win7 and have Powershell docked on my taskbar. When I launch it from there, it retains all of my color and font settings from the last time I used it. I have two questions. First, if I ...
7
votes
4answers
5k views

Rtf to txt on Unix [closed]

Can anyone recommend software (preferably freeware) for batch converting rtf files to txt files on Unix?
3
votes
1answer
955 views

Freeware FTP client with batch processing support [closed]

Is there a freeware FTP client with batch processing support? I have 50 IP addresses that I need to upload to. How do I make this as simple as possible?
2
votes
1answer
270 views

Batch Upscale ISO images

I have most of my DVD collection ripped to ISO (just the movie, not the rest) I have loads of storage space, but an underpowered PC running boxee. I'd like to convert all the ISO images into upscaled ...
8
votes
4answers
53k views

Why does 'ping' returns 'request timed out' for some hosts?

For some hosts, ping www.example.com it resolves their IP but why does it fails with request time out? I have also tried to increase the ping response time but still the same result.
0
votes
1answer
721 views

OCR batch processing images

I have about 3000 small images of text which I want to process into a comma separated list. Is there any free program that would be capable of this?
1
vote
2answers
3k views

Why doesn't “call” work in a Windows 7 batch file?

I have a .bat file which contains call "c:\my path\myprog.exe" but the command prompt says that call isn't a command.
1
vote
1answer
204 views

Make the recycle bin of the SSD on a RAID0 drive?

I don't know about you folks, but I hate the idea of junk sitting on my tiny 30GB SSD. Any way to designate another drive to be the host of the Recycle Bin for items formerly on the SSD? Basically, I ...
34
votes
12answers
103k views

How do I create a Windows Batch file that does not show the Command Prompt when executed?

I have installed a ruby gem called Redcar, which is launched from the command line. When it runs, it steals the shell until it terminates, so I have to create a new shell window to continue doing ...
0
votes
2answers
3k views

map to drive on server with bat file

I have a web server that I want to map a drive to it. I want to do this in a .bat file. Pseudo -> Check if a drive at an ip address has been mapped to a local drive. If it has then progress with a ...
7
votes
2answers
7k views

Multithreaded Windows FOR batch command

do you know if there is a simple way to run FOR command in batch file on multiple threads? What's the point of having 4 cores if I can't run my tasks in 4 parallel threads? For example, if I am ...
0
votes
2answers
482 views

How can my monitor be awoken after Windows 7 resumes?

I have a script that makes the computer sleep at 8pm and wake/resume at 8am. The scripts run perfectly fine, but when it wakes at 8am, the monitor doesn't turn on until the mouse is moved. How can I ...
14
votes
5answers
33k views

Windows script to copy some text to the clipboard?

I am using an application that requires several attempts to log in (because of overloaded servers). This app has no "remember my password" feature. Therefore, I would like to make a script (...
0
votes
2answers
827 views

Order of execution of startup(boot) programs and “after time”

Is there a way to make custom startup programs to run after "some time" after boot up.. How to sort(order of execution) programs "specific amount of time(after another program)" ? Maybe a batch file, ...
0
votes
3answers
5k views

How to center batch files when they open up?

How do I center batch files when they open up? I mean not by dragging but every time they open up they are automatically centered like is there a command? I am trying to make a game like that. And ...
3
votes
4answers
2k views

How to batch rename files in Windows? [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? Is there any built-in support for batch renaming files in Windows? If not, what are some 3rd ...
2
votes
1answer
7k views

Automatically responding yes to forfiles

I'm looking to automatically delete files older than 7 days old with forfiles. The code below works when I do it manually and respond yes to deleting the files. How can I incorporate the yes into ...
2
votes
5answers
23k views

Launching multiple applications with a single command/script/shortcut

I realized a few days ago that every time I sit down at work, I do a few things after unlocking my computer. First, I open up Firefox, then I open up Chrome, then I log in to Digsby. I realized I ...
0
votes
2answers
4k views

Windows PE 3.0 detect what device it was booted from

I am creating a custom boot disk for work using Windows PE 3.0. I need to be able to tell what drive the system was booted from. it may be a CD, or a USB Flash drive. In the past, I have looked for ...
0
votes
1answer
157 views

Questions about using a .bat file

(using WinXP) I've not written a batch file before. I want to create a shortcut for using virtuelenv. I normally have to open a shell, type C:\some-path-to-my-env\Script\activate.bat. Then I have a ...
6
votes
3answers
9k views

Windows batch-file that continues after launching each program

I'm trying to create a very simple Windows-XP batch file: Program1.exe Sleep 3 Program2.exe Sleep 5 Program3.exe Sleep 11 Of course, I don't want to have to exit each program, before the next one ...
8
votes
2answers
1k views

Generate or update a PDF to include an encrypted, hidden watermark?

Background Using LaTeX to write a book. When a user purchases the book, the PDF will be generated automatically. Problem The PDF should have a watermark that includes the person's name and contact ...
2
votes
1answer
601 views

Why does this batch script terminate unexpectedly?

This batch script terminates when %CHECKCONTINUE% is given a null value by not inputting anything on line 13 (SET /p CHECKCONTINUE=Okay to continue? (y/n):), why is this? @ECHO OFF SETLOCAL TITLE ...
1
vote
1answer
2k views

What do %~df0 and %~df1 mean in a batch file?

I have seen usages of %~df1 in a batch file but I don't know what they mean. I have also seen %~df0 and I think that means the current directory of the batch file but I can't find any documentation on ...
1
vote
1answer
2k views

How to ensure full path in Windows batch FOR loop

I've created a generic batch (or Windows Command) file that lets me loop through the contents of a directory and call a command for each item. IF a%1==a ( set _DIR="%CD%") ELSE ( set _DIR="%~1") IF a%...
0
votes
3answers
14k views

Run a batch file with windows task scheduler

I have a batch file daily.bat, this is the code: cd C:\inetpub\wwwroot\infoweb\factuur\cron c:\PHP\php.exe -f ./cron_pdf.php ftp -s:ftp_upload.txt ftp.infoweb.be And I created a task ...