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

0
votes
1answer
181 views

batch file %DATE% use different separators

I'm trying to run a mysqldump with a date filename mysqldump -umyuser -pmypass mydatabase > c:\backup\%DATE%.sql Problem is, filename is printing as 6/17/12.sql. Is there a way to change the ...
2
votes
1answer
266 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 ...
1
vote
1answer
160 views

Modify ffmpeg batch file to replace extension instead of appending new one

I'm trying to convert a bunch of .flv's in a folder to .mp3's with FFMPEG in Windows XP. This batch file works fine for me. for %%A IN (*.flv) DO ffmpeg -i "%%A" -ar 44100 -ab 128000 -ac 2 ...
0
votes
0answers
153 views

How do I diagnose errors in a batch FTP operation?

I need to transfer two text files from my local PC to a directory on my server. I use a command sequence stored in FtpCommand.cmd to perform the commands in ftp, using the following command. ftp -i ...
0
votes
1answer
161 views

How to set dropbox based syncable reminders?

I'm trying to look for a way to set reminders between my homepc and work pc. And I need it something like this: I put a text file in dropbox on homepc, and let it get uploaded to dropbox (synced) ...
1
vote
3answers
5k views

how to display local IP using a batch file?

So far I have the following in my batch file: %comspec% /c ipconfig | find "IPv4" > %HOMEPATH%\desktop\MyIP.txt %comspec% /c start notepad %HOMEPATH%\desktop\MyIP.txt However, when I run the ...
-1
votes
1answer
151 views

Replacing a string in all config files across machines with a script [duplicate]

I have the below task and I am wondering what would be the best and quick way to do this. I am thinking scripting rather than a C# app but struggling with scripting in DOS. I wanted to use powershell ...
1
vote
1answer
1k views

How to create “Send to ”FOLDER“ ” similar to send to desktop shortcut?

I've been trying to keep some files in a separate folder as shortcut, so that I can keep track of my favourite media files and images etc in a specified folder as shortcut. I don't want to always copy ...
0
votes
0answers
1k 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
307 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 ...
1
vote
1answer
131 views

Open graphical runas window from script on Windows XP

My customers don't want to do a SHIFT+Right Click > "Run as" on a script. So I am looking for a way to do exactly the same from a batch script. How to open this window on Windows XP from a batch ...
2
votes
1answer
384 views

Editing GPO Programmatically

I have a batch file that I'm using to update a large group of computers. This batch file works, for the most part. Where it fails is when the computer has been set up to "Disable Active Desktop" under ...
0
votes
1answer
271 views

Batch processing in Linux?

What kind of script I need to run a batch on Linux? I have to launch this line php magmi.cli.php -profile=FINALE -mode=create -CSV:filename="path/to/file01.csv" 40 times for 40 different CSV files ...
5
votes
2answers
7k views

Add text to end of filename (but before extension) using batch file

I have a list of files which are in the format on the left. I want to append a string to each file name, but before the extension, as shown: File 1.txt -> File 1 version 1.txt File 2.txt -> ...
1
vote
1answer
2k views

Create an XML file Batch

So, I want to include in one of my batch file projects a way to create an XML file. I already have a way of parseing XML files to get the data out of them, so that is of no matter. Anyways. Let's say ...
4
votes
3answers
3k views

́╗┐' is not recognized as an internal or external command

When executing certain files (mainly batch) using PsExec I get these weird ́╗┐' symbols before my command. My initial thought was, that I were using wrong encoding, but after checking, I realized that ...
1
vote
1answer
3k views

Unzip file from source to destination within user directory across multiple versions of windows

I have a source zip file which is located in a user's "My Documents" directory. It is guaranteed to always be there. I'm looking for a way to create a batch or script which will let me unzip that file ...
0
votes
1answer
2k views

Get USB key manufacturer serial number

I am looking for a batch command to retrieve an USB key manufacturer serial number. I need a command that works in both Windows XP and Windows Seven. This is for a hardware follow-up. I have a script ...
1
vote
1answer
530 views

Batch script for archiving

I need to set up an archiving task on Windows 7 using Windows command line and WinRAR (or some other similar program). I want to create a script that does this, but I have no prior experience. I want ...
-1
votes
1answer
290 views

Bulk Rename from list of file names

I have a list of random file names. I want to use this list to rename all files in a particular folder. The folder contains the files: Mike.exe Josh.exe I want them to be renamed using names from ...
3
votes
2answers
239 views

unable to set local admin password using GP

I'm updating our local admin script which does not include server 2008 r2. Because 2008 and Windows 7 have same version Microsoft Windows [Version 6.1.7601] so I can't do a version search. I have ...
4
votes
3answers
6k views

Run a process and return its PID (as CHP.EXE) for a batch file

I'm looking for something like chp.exe, it can runs a command and returns its pid. I can not use CHP.EXE because it seems to be reported as infected file in some antiviruses. Thanks
0
votes
3answers
596 views

If statements causing batch file to crash?

I am having trouble using IF statements in a batch file. I have it set up with a set /p but when the code gets to the IF statement it closes. This file outlines what I mean: @echo off set res1=word ...
0
votes
2answers
843 views

How to rename files based on timestamp, with batch script?

Suppose I have 10 files generated by the system every day under D:\Temp. The names are RANDOMLY generated. Assume I need to rename the oldest one to be 'aaa', the second oldest one to be 'bbb', then ...
1
vote
1answer
527 views

Batch script to rename folders from a list

I am trying to write a batch script that will rename folders that are defined in a list.txt file. FOR /F %%a IN (C:\SCRIPTS\list.txt) DO RENAME "%%a" "%%a_delete" && EVENTCREATE /T ...
0
votes
0answers
201 views

VirtualBox and group policy in Windows 2008

I have some batch files that start and save virtual machines on a Windows Server 2008 box. I am using gpedit.msc to fire the bats... I have added lines to write to a logs. There is a line written, ...
1
vote
1answer
311 views

Replace certain characters from many txt files within a folder

I have many txt files inside a folder and I want to replace/remove some characters in them. I want to remove "{", "}", and want to replace "*^" by "E" (here *^ has to be together). Is there a way to ...
-2
votes
1answer
840 views

Batch - Using wget (or similar service) to pass a captcha request

I need to download this file... h**p://www.vhannibal.net/download_setting.php?id=1 ...using Wget from promt of dos of my Windows. Currectly i used GnuWin32 wget 1.11.4.3287......... when i put ...
0
votes
2answers
60 views

Windows batch file, use the “|” (OR) character

I'm trying to work on a batch script for windows (.bat) that executes some commands, and need to send the '|' character as a parameter. Here's an example: echo hello|world this will never return ...
1
vote
1answer
183 views

Batch : extract some characters of a string

How can I extract alphanumeric characters only from a string? Example : b:lbalbqsd1287/;:!, gives blbalbqsd1287 Is it possible with findstr?
0
votes
1answer
58 views

making a schedueled task run mnimized

I have a batch file that I run once an hour via Windows Scheduler. Unfortunately, it can take several tens of minutes for this batch file to finish running. Is there a way to make the batch file ...
2
votes
1answer
101 views

Collating scanned PDFs from 2 folders

I have the front and back side scans of about 1000 separate documents in 2 sepatate folders. I'm looking to create a batch operation that combines the front scan and its corresponding back side scan ...
1
vote
1answer
280 views

How to concatenate all files with a certain extension in directory structure

I'm trying to write a simple script for the windows command line that takes all files in the directory structure (files in the same folder as well as other folders in that directory), and concatenates ...
0
votes
3answers
708 views

Batch - Get the url of to a file from html document

I want to use curl to download the latest version of this file. The site has a robots.txt, however, which is what I think is stopping me from just using curl -L -z WorldGuard.zip ...
1
vote
3answers
2k views

Random number in a batch file doesn't change

How to make this script work under command prompt?, right now all random number are the same SET SOME[1]="AA" SET SOME[2]="BB" SET SOME[3]="CC" SET SOME[4]="DD" SET SOME[5]="EE" FOR /L %%i IN (1,1,5) ...
0
votes
1answer
100 views

Why doesn't my script work?

The script I am using is FOR /F "tokens=91 delims=<>" %%v IN ('curl http://ci.onarandombox.com/job/Multiverse-Core/lastStableBuild/api/xml') DO ECHO %%v What I want it to do is search the output ...
-1
votes
1answer
496 views

.vbs won't execute anything at all

I created short script to run .bat file on background but when i execute .vbs file, it seems like it is not reading my script at all. .Dos windows pops up and shutdown right away but my batch file is ...
3
votes
1answer
3k views

Download a file from the latest stable Jenkins build

Using a batch file and wget/curl, how can I download the Multiverse-Core-.jar from here? http://ci.onarandombox.com/job/Multiverse-Core/lastStableBuild/artifact/target/ I want to use the timestamping ...
3
votes
2answers
1k views

Copy random file from random subfolder into destination folder using a windows bat script

I'm attempting to pick a random 100 songs to copy to my mp3 player so I have something new to listen to each morning without having to drag and drop random files myself (I can't put my entire library ...
1
vote
2answers
11k views

How do I actually open a program from a batch file? All it does is open a command prompt with that file name [duplicate]

I'm currently trying to learn Batch file scripting so maybe I'm just not seeing what I'm doing wrong but I am just making a very simple batch file that opens up a text file. Here is the code I am ...
1
vote
1answer
1k views

Extract ip address from specific NIC in win7 batch file

I am building a batch to automatically switch a proxy config and the related ip settings bui i am having trouble extracting the ip address of the network adapter i need. I have one "real" nic, and two ...
1
vote
0answers
213 views

Able to auto-login but some commands in text file are not executing in SSH

How can I access the password for mvslogin.sh in putty. I am using below commands in a batch file: C:\Users\pathaanj\Desktop\plink.exe -ssh tpcvld01 -l lz87t1 -pw automate_12 < ...
1
vote
2answers
3k views

Leave cmd windows open (called from batch script)

I am launching 4 executables from a batch script: @echo off start ../../../../LD_Server.exe 12321 23432 11221 3 start LD_Client.exe 12321 pero start LD_Client.exe 23432 tina start LD_Client.exe 11221 ...
0
votes
1answer
468 views

Get errorlevel in cmd script calling ssh

ssh -i private_linux_key user@machine "exit 1" || echo %errorlevel% This always prints 0. How can I get actual error code returned by ssh? || somehow detects that there was an error.
1
vote
3answers
1k views

Batch file with changing drive letters

My goal is to create a batch file that will extract the contents of a zip file to a separate directory. Every file related to this question is on the same flash drive. The following command works ...
-3
votes
1answer
354 views

Deleting the first column of csv via batch commands [duplicate]

Is there a way to delete the first column of a csv using a batch command file? I have data in this first column but I want to get rid of it and output a new file starting at the 2nd column. Thanks!
1
vote
3answers
3k views

Batch filling pdf form using data from Excel

I have an excel file which contains many rows of data, each row has columns like last name, first name, gender etc. I would like to batch fill these data into a form which is in PDF format, each row ...
1
vote
1answer
263 views

Batch copy paste from txt file to doc file on mac

I have a bunch of .txt files, sorted in different folders. I need to convert all of .txt files to .doc files. I have Googled the issue and found that I could just change the extension to .doc. But ...
1
vote
3answers
796 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: ...
2
votes
2answers
598 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 ...