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

4
votes
1answer
319 views

how to copy I/O not just redirect (Windows and Linux)

I have a simple call command call calabash -D sim.xpl >test.txt 2>&1 and this redirects into test.txt, how do I do both redirect into a file and allow it to show up in the prompt? (I ...
4
votes
6answers
10k 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 ...
3
votes
7answers
8k views

Why does the PING command in my batch file execute in a loop?

I created a .BAT file in Windows 7 that has the following line: PING XXX.XXX.XXX.XXX -t (XXX replaces the actual IP number). However, when I double click on this batch file, I can see the PING ...
3
votes
1answer
11k 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 ...
3
votes
1answer
314 views

How to prevent command line wildcard processor from evaluating short file names

I'm developing a batch file within which I'm using the following pattern: *.res I want to select all files with the extension .res, but this pattern is matching files with an extension of .resources ...
3
votes
3answers
2k views

How to change the extension of all selected files at once?

Its possible to rename files all at once. But its not possible to change the extension of selected files all at once. If windows doesn't support this facility .. then is there any batch script or ...
2
votes
2answers
1k views

batch - File last modification time with seconds

I want to know when a file has been modified for the last time. I can get these infos using the following batch script: FOR %%i IN (myfile) DO SET modif_time=%%~ti The problem is that I need ...
2
votes
2answers
294 views

Can I turn Caps on/of from a batch file in Win 7?

I have a very old program that needs the commands to be all caps. when I exit this program I often forget to put the Caps Lock off (very annoying). I had a batch program in XP that did this but can't ...
2
votes
2answers
113 views

Where are the folder icons generated with the folder properties kept in the Registry?

Right click on a folder and select properties. Select the "Customize"tab. At the bottom select "Change Icon" etc Works very nicely. My question is: Where is this information held in the registry?
2
votes
1answer
708 views

FTP batch file works from command line but not scheduled task

I want a windows scheduled task to execute an ftp batch file which will upload some files to my server. If i run the argument below from the command line then it executes successfully. ftp -i ...
2
votes
1answer
178 views

Import from List - Batch file

Ok here is the scenario. I am trying to figure out a way to copy users' docs and settings (Favorites, My Documents and Desktop) to a network location as a backup for decommissioned drives. My problem ...
2
votes
2answers
439 views

Batch file to poll a folder for new files

I want to write a batch file which is triggered whenever a new file is added to a particular folder. I can schedule a task using schtasks. But I am looking for a solution based upon interrupt kind ...
2
votes
2answers
278 views

installer script for multiple software packages

I will need to package an older java application with it's dependencies on Windows which are quite a lot. I've exported a runnable .jar and got the depending native libraries, but still I need to make ...
2
votes
1answer
106 views

How does the start batch command execute a software by calling only its name? [duplicate]

For example I launch superuser.com via firefox by this command: start firefox http://superuser.com How does "start" know where is my firefox.exe? I guess it reads it from registy (it is not defined ...
2
votes
1answer
1k views

Edit windows service to log on as specific user using a batch script

I have several programs that are installed as a service. By default, after installation, the service runs as Local System Account. I can change it through services.msc, service properties to the ...
2
votes
1answer
250 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 ...
2
votes
3answers
6k 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
1
vote
1answer
34 views

How can I recursively identify non-searchable PDFs and copy them to a folder?

Further to an earlier post which provided a script solution: From my question it may be possible to tell that I am a computer user and have no programming knowledge. I have hundreds of searchable ...
1
vote
2answers
924 views

How to create multiple folders and name them by reading lines from text file?

I have a plain text file named Export.txt. It contains a list of geographical places, preceeded by a 3 digit number with leading zeros. Example --START OF FILE-- 001 Aberdeen 002 Bellevue 003 Camas ...
1
vote
2answers
403 views

How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2

This is in relation to this question . Unfortunately, PowerShell scripts are disabled on the system I am working on. I can't even use a simple (Get-Content). I did figure out how to do change ...
1
vote
1answer
350 views

Set environment Path Windows 7

Trying to add stuff to the system environment Path via batch, vbs or anything really. This used to work in a .bat, but has stopped: setx -m path "C:\addtopath;%PATH%" This used to work in VBS, ...
1
vote
2answers
515 views

batch command to store a folder name in a file in single line

I have a list of folders in a directory, i need to copy just all the folder name to a file and the file should be in a single line seperated by delims. can any help me with this in a batch file. ...
1
vote
1answer
242 views

Batch image program to replace 2 colors?

I have a lot of .png images, and I want to replace a color to another color.. Is there a batch program to do that? I'm on Windows 7
1
vote
2answers
676 views

Creating separate archives for a set of files

I have directory containing big list of files. I'd like to gzip each file of a certain mask to a separate archive. How do i do that automatically? For example here's sample directory contents: - ...
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 ...
1
vote
2answers
258 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 ...
1
vote
2answers
1k views

CMD MOVE can't replace directories in WIN 7

The MOVE command does not work when to ovewrite a directory. I have also tryed to run cmd with admin rights. I'm posting this question with more info so you can easily test it self. Make your own ...
1
vote
2answers
180 views

Cluster advice - batch instructions

I'm setting up a small cluster of 20 machines that will have to run a batch command. The batch will have some instructions then run a Java program that will crunch data for about 2h then return the ...
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.
0
votes
1answer
56 views

How to associate a file extension to be opened with a batch script?

I want to get rid of OSPPSVC (Office Software Protection Platform Service). Then, I have replaced the links to open Office programs with a link to launcher.bat: @echo off title Launching Office... ...
0
votes
1answer
88 views

Mac OSX Text to Speech Batch

I have 300 English text files that I want to make into mp3 files to listen to as and when. Is there a free program or automator script that I could use so that my Mac will batch text to speech the ...
0
votes
0answers
779 views

.bat runs from command line but not when scheduled

I've got a 1-line batch file that runs a pantaho etl job. It works fine when I run it from command line or gui, but the process doesn't even start when it's scheduled. I have the following settings: ...
0
votes
2answers
3k views

pscp is not recognized as an internal or external command error

I have a batch file with a query like pscp .... written in it. When i try to run that file an error pops up saying pscp is not recognized as an internal or external command, operable program or a ...
0
votes
1answer
5k views

Batch file to copy files from desktop location to another location?

I want to Copy/Move files in Windows XP from Desktop(a Folder) to My Document(another Folder), which was created by same Batch File on Current Date in Format DD/MM/YYYY. This is working fine when ...
0
votes
2answers
76 views

Batch File Transfer addon

I made a Batch file that allows me to move files to one hard drive to the next hard drive. There is just one thing I would like to add to it. I want the CMD to prompt me to what user account its ...
0
votes
1answer
756 views

Launch a program when another program opens

I would like a method for starting a program when another program starts. Specifically, I’d like a to open a MS Word document and have my citation manager open simultaneously (EndNote supports this ...
0
votes
1answer
226 views

Photoshop batch process pausing on every action

I recently upgraded to Photoshop CS6 and imported my actions from my previous version. I am trying to run a batch script to automate an action. Every step seems to require a input click. In other ...
0
votes
2answers
5k views

How to launch shortcuts to a Virtual PC “XP Mode” application in a batch … successively?

First of all, I'm French, so forgive me my English (the dictionary is my friend) ... Here is my problem : I have some trouble with a batch file to launch two virtual applications successively ... ...
0
votes
2answers
114 views

Multiple directory file operations

In windows, I would like to use some sort of batch file to unzip files on multiple directory at once. For example : Initial directory --Foo1 ----file1.zip --Foo2 ----Foo2.zip ...
0
votes
2answers
2k views

FTP script won't transfer remote files to local computer

This is a follow up to FTP BAT file - Windows Scheduled Task. I copied the FTP script, but I can't transfer the files to my local computer. All I get is this (server address omitted): 331 ...
0
votes
1answer
259 views

Delete Protected WMA

I have several hundred protected WMA files that I don't want to keep, spread in a several level deep folder structure. Is there an easy way to detect these files and delete them? There are also ...