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

2
votes
3answers
38 views

How do I write a batch script to start a process and terminate it after letting it run for about 10 seconds?

How do I write a batch script to start a process and terminate it after letting it run for about 10 seconds? @echo off start abcd.exe [X] taskkill /im abcd.exe /f exit
2
votes
3answers
1k 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 ...
1
vote
3answers
14 views

using tr from coreutils for windows

I have to transform contents of file from \ to \\ on Windows in script. So I got Coreutils and tried to use tr \ \\ < file_in > file_out on Windows CMD, but \ in file_out remainde \ instead of ...
1
vote
3answers
853 views

Randomly Select File, Rename, Move to a new directory

We have a directory that gets loaded up with 40+ files that have different file names. They all start out with the same file name structure, but a date is appended to the end. Example: ...
1
vote
3answers
879 views

How to write a batch file to append each item (of a list of directories read from an external file) to PATH?

How can I translate the batch file from rem working batchA.bat PATH=%PATH%;C:\Program Files\gs\gs9.07\bin PATH=%PATH%;C:\Program Files (x86)\Adobe\Reader 11.0\Reader PATH=%PATH%;C:\Program Files ...
1
vote
3answers
2k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
1
vote
3answers
1k views

Batch transfer file every x minutes

I have a simple question, but I don't remember the batch syntax very well. If I want to create a batch file that transfers all the files in Folder A to Folder B every 20 minutes, what does the batch ...
1
vote
3answers
956 views

Java is not recognized as an internal or external command in vba inside shell in a batch

Every time I try to call the java function from the shell function in vba or from the batch file from the shell function in vba it says that Java is not a recognized command. Though I can do this ...
0
votes
3answers
43 views

Recursively move files to relative subfolder

I've looked around for topics about this but I fail to achieve want I need. Any solution, either in Ubuntu or in Windows cmd would be greatly appreciated. The current structure is /folderA/*.txt ...
0
votes
3answers
40 views

I want to rename the bulk files and folders at single time,how I can do this with batch scripting

I want to rename the bulk files and folders at single time,how I can do this with batch scripting I have the code for only to change either file or folder,not both @echo off SETLOCAL ...
0
votes
3answers
69 views

Automating User Input / KeyStroke For a Program

I've read about this problem on related posts found here at Superuser; however, my issue is slightly different and potentially difficult to solve: I am working with a phylogenetic program called ...
0
votes
3answers
209 views

Windows 7 script to change part of a file name

I have a collection of files whose names are in the form car-#######-NNNNNNN.xxx, where ####### is a series of numbers that need to be kept as part of the file name, and xxx is an extension denoting ...
1
vote
2answers
2k views

How to open multiple URLs in Chrome/Firefox and then save them individually?

If I have a .txt file containing a list of URLs, how can I get Chrome or Firefox to open them, one URL per tab and then save the page in each tab separately? Any platform will do: Windows, Mac, ...
1
vote
2answers
240 views

Batch Capture incoming Netstat IPs as variable

I'm trying to figure out if there is a way I can capture (and if possible, log) the ip addresses displayed from 'netstat' command. I'm trying to make a script that waits for a ping from a specific ...
1
vote
2answers
821 views

How to disconnect/connect ADSL modem connection to ISP by command? (Windows 7 SP1 x64)

I want to write that command in a .bat file and run it by windows scheduler at certain times of night and morning. (for example: open connection at 23:00 and close it again next day at 9:00 ...
1
vote
2answers
504 views

Taskkill for all running processes that exist in a specific directory

I basically want to combine the following sets of commands. In other words I need to check to see if any executable that exists in c:\apps is running, and if any are, to kill them. Once these ...
1
vote
2answers
173 views

Skip hidden folders in .bat scripts

I am trying to find a way to get a listing of all files, without hidden directories. I have tried several variations of something like this: dir /b /s /a:-h z:\ >toc-z.txt but this only ...
1
vote
2answers
829 views

Filter a CSV file using Windows batch file

I have a file with 12 columns separated by ? I need to export column number 12 (NetBIOS Name) and append the whole row to a CSV file. Skip the first line that is the column description. The first 4 ...
1
vote
2answers
363 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
44 views

adding pre- and post- actions around an existing windows program?

There is a program I use all day long and it's data resides in a single, large file. I work at 2 different locations and sometimes also on the road and need current data. In the best of days I ...
1
vote
2answers
2k 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 ...
1
vote
2answers
176 views

Single File Archive+Copy+Extract Deployment for PC

I've got some files on a machine that need to be archived, then copied over to another machine. On the other machine I need the files in a folder to be archived and removed, and then have the new ...
1
vote
2answers
249 views

Script or util to remove old backups

I'm creating a backup strategy for a sharepoint server I'm setting up. Have got a backup running daily. In the long term I'd like to keep: Daily backups for the last week. Weekly backups for the ...
0
votes
2answers
29 views

Windows Batch File to move contents based on file type

I was figuring out a way to manage my downloaded files from chrome.I want that my pdf file should save in ABC directory, audio file should save in XYZ directory etc.I thought a way to do so through ...
0
votes
2answers
26 views

Creating Directory Dynamically by using Windows Batch File

I have a question over here that I wish to achieve. Let's say the scenario looks like this: In BuildFolder there are these files: Z:\BuildFolder\Build#170 Z:\BuildFolder\Build#171 ...
0
votes
2answers
73 views

batch file to find a word, extract 2 line above the word and write it in diffrent text file

In my scenario i need to check my file (XXX.txt) for the word "SPOT". There will be few of SPOT word in the file. Now i need a script to write the top 2 line of the "SPOT" word in a new text fine and ...
0
votes
2answers
61 views

Recursive command-line md5 generator and verifier

I want to write a batch script that has the ability to generate and verify md5 hashes of an entire directory tree. Is there any program like this for windows? I can find many md5 programs, but they ...
0
votes
2answers
81 views

batch file to upload a file to a website

I have tried for days to upload a single file to a directory in my web site:I know I can use Filezilla but I want to automate this for some non-tech people. Just click an Icon that runs a batch file. ...
0
votes
2answers
140 views

Remove Recent Places from Windows 7 Favorites using Batch or Registry?

How do you remove the Recent Places shortcut from the Favorites side bar in Windows 7 using a batch file or from the registry? For example, when running a batch file to configure, add, and remove ...
0
votes
2answers
66 views

how to run a batch recursively

I have a parent folder (BIG_Folder), which contains many subfoldes (folder1, folder2, folder3 ...) in each subfolder a batch file exists, it is always the same (x.bat). I want to run all bats, ...
0
votes
2answers
161 views

DOS Batch - Get current directory whilst in a for loop

I intend to write a little DOS batch that creates m3u files for a given subdirectory structure containing sound files. The m3u file shall have the name '[Parent Directory].m3u' (where [Parent ...
0
votes
2answers
265 views

Run other cmd in bat like from it's own path

I need to run bat(fix.bat) in cmd batch file (let's say sample.cmd on c:) The problem is that despite of using: start /WAIT cmd.exe /C D:\dev\sys\fix.bat fix.bat runs like from parent command ...
0
votes
2answers
289 views

Printer bat script

I've been having some issues with a batch script that i have setup to add IP printers as local printers. It seems to be working just find on my own computer where i wrote the script but now seem to ...
0
votes
2answers
209 views

Creating Comma Separated Values in Batch Scripting

I have written a piece of code in Batch script which is somewhat like : ( wmic.exe /node:x.x.x.x computersystem get name wmic.exe /node:x.x.x.x computersystem get domain wmic.exe ...
0
votes
2answers
77 views

Duplicate Deletion Script does nothing

An associate of mine wrote a script for me that should theoretically delete files that have the same name, regardless of their file type. Specifically, it checks mp3, m4a, wma, wav files. However, ...
0
votes
2answers
910 views

Batch Printing TIFF Files in Windows

I am trying to batch print .TIFF files efficiently. I have found that I can drag files from windows into the print job queue window and it will print them right from there. With PDF's of varying ...
0
votes
2answers
113 views

.bat file overriding answer

When I made this batch file, when typing y and n for the first time it works fine, but as soon as I choose n, every single time I try inputting something, it opens up the 7000 songs wpl list then ...
0
votes
2answers
495 views

Rename and reverse the numbering of a list of files

In Linux, preferably using bash, what would be the best way to achieve the goal below? Say I have a series of numbered files 001.png, 002.png, 003.png What is the best way to move/rename them to ...
0
votes
2answers
61 views

How can i paste the data stored from clip and use it for a different command

I need to paste the result of clip command into netsh interface ip address FOR /F "tokens=*" %%i in ('ipconfig ^| find "IPv4"') do SET result=%%i echo %result:IPv4 Address. . . . . . . . . . . : =% | ...
0
votes
2answers
378 views

How to batch insert same clip scene at the beginning of multiple videos?

Well, it has been a few days researching on a suitable auto or semi-automatic way of mass merging files this way. Basically, what I want to achieve is inserting the same clip, before a bunch of other ...
0
votes
2answers
1k views

Windows 7 - Shortcut - Target Attributes too long

I need to launch a shortcut to a program (vlc.exe) and have it launch with certain attributes (it's quite a long string) and the target box will not accept enough characters. I need help finding ...
0
votes
2answers
624 views

File upload batch

I am trying to write a batch file that will Upload and update a specific set of file on my desktop to an FTP account, so I wrote this batch: @ftp -i -s:"%~f0"&GOTO:EOF open DomainName.com ...
0
votes
2answers
745 views

How do I batch decompress so that each file unzips to separate folder?

Does anyone know how to unzip a highlighted list, so they unzip to folders of file name (under Windows)?
0
votes
2answers
1k 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 ...
0
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 ...
0
votes
2answers
82 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?
0
votes
2answers
470 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 ...
-1
votes
2answers
13 views

batch file to multiply number in text files

I have lots of txt files to edit numbers in them. Some of them contains lines like this: delay=250/1000 I need a simple script/software to set editing rules like this: scan %y'th line and find ...
-1
votes
2answers
281 views

Batch scripts disables Internet - getting 'System cannot find the drive specified' though I'm not asking it to

I have a batch script (that I'm running as a .cmd file through the right-click Send To menu) that first disables a user's Internet adapter, then securely unzips a .zip archive. For most people, it's ...
-1
votes
2answers
1k views

Writing a batch script which can start up applications

I was just wondering how to write a Windows 7 batch script which can start up a list of applications. Should look something like this I guess, structurally: Run C://program/software/software1 Run ...