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

1
vote
1answer
30 views

Terminate endless running process in a batch file

I am trying to find a way to automate a process with a batch file. The process is one that logs output to a file indefinitely until it gets a break (ctrl+c) command via the keyboard. I can't seem to ...
1
vote
1answer
19 views

change %i to %%i and nothing happened

I have a file with two columns of file name. The following command lists the content of the file. (for /f "usebackq delims=;" %i in ("C:\RENAME-ALL.txt") DO ECHO %i When I put the same command in ...
1
vote
1answer
57 views

Mass rename folders in Win 7

Suppose a folder named 1234-xyz. I would like to rename this folder to xyz - 123. I have a ton of these folders, so going through them one by one doesn't make sense. What is the best way to do this? I ...
1
vote
1answer
119 views

ffmpeg | batch convert | make same filename

How would I use ffmpeg to create a batch convert file for sample rate conversion, such as: $ ffmpeg -i *.wav -ar 22050 *.wav Take note, that i'm only doing a sample rate conversion, but in the end ...
1
vote
1answer
88 views

Windows Batch to read TXT and parse lines into JSON

I've made a good deal of headway by searching this site and learning the ridiculous language that is Windows batch scripting, but frankly I'm stuck. The sample below is from our lab's old radiometer ...
1
vote
1answer
50 views

Delete batch while it is open

I have a batch file that I want to run and after it runs code I want it to delete itself. Is it possible to do that? I've already tried using del and using rd to delete the directory where the file is ...
1
vote
1answer
212 views

How can I create a shadow copy in windows7/8 in a batch file?

On server operating systems I can (and do) create a shadow copy of a volume and mount that copy using mklink before copying a folder that almost always has open files. See below for Q&D example. ...
1
vote
1answer
78 views

Bulk SFTP download of files specified by URL preserving directories

I have a list of several hundred files I need to pull via SFTP. They are located in various directories and I need them to be in the same directory setup on my local machine. It is important the files ...
1
vote
1answer
100 views

Edit windows service user with a batch script and encrypted password

I need to change the user of a service on Windows using a batch script. Searching the web I found this solution: sc \\server config ServiceName obj= Domain\user password= pass The problem is, that ...
1
vote
1answer
64 views

How do i copy a specific word/number from a TXT file using Batch?

I need to search for a specific nubmer that comes after a string in a text file. For example I have this data: yyy = 80rr, xxx = 136rr, zzz = 95rr and i want to copy the numbers that between ...
1
vote
1answer
90 views

Download files from web, unknown name of file

I need to download 10-15 programas every week, and looking how to automate the process. It's easy when I know exactly the name of .exe file; but what about the case when I dont? For example, lets ...
1
vote
1answer
58 views

Looking to rename a batch of cab files to lowercase as well as adding their SHA1 Hash

I need a batch script to rename all the files in a folder their lowercase equivalent, with their SHA1 hash added at the end after an underscore. Example: I have a file called: ...
1
vote
1answer
280 views

Preventing my pc from being shut down remotely

In my college, we use Microsoft Server 2008, and each student has their own account. In my class, students discovered that they can remotely shut down each other's PCs using cmd (the fact that we ...
1
vote
1answer
20 views

I would like to batch change one colour in a group of PNGs. Mac - freeware software

I hope someone would be able to help me. I have a group of icons in png format. They are all transparent backgrounds with one colour for the actual icon. I would like to change this colour in all of ...
1
vote
1answer
89 views

How can I get ConEmu to open more than 30 tabs?

I have a .bat file which opens 100+ consoles, but I need them in new tabs. Problem is, ConEmu has a max of 30 tabs. I can do this with regular cmd, but its 100+ new windows. I'd prefer them in tabs ...
1
vote
1answer
133 views

Running a same batch file again every 30 minutes

I have a batch file which is just a simple batch file. You can take any example. How can I keep the batch file running in a loop from start to end again and again, till the specified time is met or ...
1
vote
1answer
62 views

Multiple Find/Replace queries over multiple files: replace one by one

What I want is this (Software can run on Linux or Windows, both are available): Supply a list of files in which strings should be replaced (wildcards ideal, but not mandatory) Supply a list of ...
1
vote
1answer
245 views

Windows Batch - Move files to folder parent & Remove empty subfolders

I found several such questions and tried to adapt the answers to my needs but no luck so far. I'm trying to create two context menu entries in Windows 7 that would: Move all files from subfolders in ...
1
vote
1answer
80 views

Need help to replace one tag with another

Anyone can help me on EmEditor Macro? id="131" restype="x-p" phase-name="pretrans"><source>Good morning</source><seg-source><mrk mtype="seg" ...
1
vote
1answer
217 views

Batch convert of Word docs with images to HTML

OK, here is my situation: I made a knowledge base for a company, they have about 500 word documents with screenshots in them explaining procedures and such. I can easily paste the text into the cms ...
1
vote
1answer
462 views

batch converting from XLS to windows CSV on a mac

I'm using OS X and have lots of these XLS files that I need to format as a batch operation. I need them in "Windows CSV" format, but I can only seem to get them batch converted to Mac CSV... I am ...
1
vote
1answer
92 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
1answer
107 views

What is the significance of a dot after a command in Batch?

When writing Batch files (.bat), ECHO. is used to print a blank line to the screen. How does this work? What is the significance of a . after the command name? From the tests below, it seems that ...
1
vote
1answer
590 views

7-zip -xr!*.bat is creating an empty archive with the batch files name

I am trying to exclude files from a 7-zip batch. The syntax is: for %%A in (*) do "C:\Program Files\7-Zip\7z.exe" a -tzip -xr!*.docx "%%A.zip" "%%A" -xr!*.bat The command is creating zip files ...
1
vote
1answer
285 views

Dir and Findstr commands taking a long time to complete in Batch File

dir %DRIVE_NAME%: /S /C /A-D /Q /T:C | findstr ".zip$ .doc$ .xls$ .xpt$ .cpt$ .cpo$ .xlsx$ .pdf$ .dat$ .txt$ .docx$ .csv$" >> file.info I am using above command to list all information in ...
1
vote
1answer
195 views

Batch file for copying a folder by checking its presence

I am a new user. I want to copy a folder containing some files into another directory. I have to check whether the destination directory exist or not. a. If exists then prompt for user input - want ...
1
vote
1answer
421 views

Batch change filetype associations on OS X

I just installed Sublime Text 3 beta and would like to re-associate all the filetypes I have linked to ST 2 with ST 3. Is there any way to perform this as a batch operation? For example: $ ...
1
vote
1answer
1k views

Convert Pages '13 files to PDF in batch

I have tons of Pages files lying around taking up precious space on my SSD. I want to batch convert them to PDF preferably via a terminal command. I have iWork '13 and iWork '09. AppleScript-ability ...
1
vote
1answer
495 views

How do you boot to a seperate drive that is cloned , for the purpose of a backup system partition?

I use Acronis to Image clone the system partion (OS) to a seperate drive (not disk clone). oops just the partition The purpose of the seperate drive with system partition cloned, is to be able to ...
1
vote
1answer
1k views

Reconfiguring, then deleting obsolete pagefile.sys from C: in one go using a batch script

I'm trying to set up an automated script for a Windows XP installer. It's a batch script that runs on first boot after installation, and among the things I'm trying to accomplish, is removing the ...
1
vote
1answer
3k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
1
vote
1answer
671 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
1answer
167 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 ...
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
1answer
277 views

How do I create a bat file to convert video files in a folder using ffmpeg

I would like to create a bat file that will go to a certain folder that contains video files, look for any files that are not .avi and convert them to .avi using ffmpeg. I don't need, and don't want, ...
1
vote
1answer
220 views

batch file to copy files keeping originals in other folder

For example I have folder: F1\F11\some files... F1\F12\some files... F1\F12\F121\some files.. And I have another structure F2\F21\some files... F2\F22\some files... F2\F22\folder\some files... ...
1
vote
1answer
75 views

desktop shortcut does not work

I have created batch file that start apache and mysql server,copy try.exe on desktop and run project in browser.that works fine.but onclick desktop shorcut error occured.error is windows can not find ...
1
vote
1answer
807 views

batch script help, find, replace registry keys

I'm trying to figure out why my reg import command is not working in the script below. When I run the reg import fileName.reg from the DOS it works fine but when included in the script below it does ...
1
vote
1answer
764 views

How to Use Mklink Batch-files with FOR command? (Automatic Junction-Point Recreation)

I'm trying to create a batch-file that creates (DIR) junction points; I commonly use. Bellow is a script, which creates multiple links, to the same location. @echo off for /f %%i in (input.txt) ...
1
vote
1answer
1k views

IP, Gateway and DNS changer [.bat Win7]

I have a batch file that I use on my WinXP SP3 (I found it on the net and it worked). SWiTCH TO CONNECTION 1 @ECHO OFF set varip=192.168.0.118 set varsm=255.255.255.0 set vargw=192.168.0.1 set ...
1
vote
1answer
2k views

Create a Batch file to backup and restore Network Printers for All Users

I have an XP machine with multiple profiles. These profiles sometimes have different printers mapped to each user. Example: User A has network printer 1, 2 and 5 mapped. Printer 2 is default. User B ...
1
vote
1answer
327 views

wait after call command minecraft

I'm trying to create a batch file for a friend because he has some problems on minecraft. He needs to launch minecraft 80 times without closing java error... I have 2 batches, one with a while, and an ...
1
vote
1answer
9k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
1
vote
1answer
257 views

Launching a scheduled task on a windows 7 VM on startup

I have a batch file I would like to run every time my Windows 7 VM restarts. I have created the batch file (and it functions as expected) as C:\example.bat. I have also setup a task in Task Scheduler ...
1
vote
1answer
323 views

How to extract binded file using batch script?

I binded two files image1.png and image2.png using command copy /b image1.png+image2.png bindedimage.png. How can i extract bindedimage.png to image1.png and image2.png?
1
vote
1answer
121 views

Batch Script for backup

I need a batch script that will zip up all files in a particular directory and save it to another directory in a YYYY/MM/DD-HH/MM/SS format. I've seen things similar but not sure about this. Thanks! ...
1
vote
1answer
162 views

Scheduled logoff scripts

I wondered if it was possible to launch a logoff script only, for example, every friday. Can this task be scheduled in Active Directory or must I programm a scripts that adds and remove it every ...
1
vote
1answer
602 views

Set Windows XP simple start menu via CMD/Registry

We're using temporary user accounts and when logging in, every time the classic start menu is restored. The new two-column start menu is not blocked by policies. I can turn it on manually, but I want ...
1
vote
1answer
859 views

cmd to powershell transition in batch-script

Is there a way of writing a batch-script that's executed via C:\>cmd.exe a.bat to switch into powershell.exe and run the remaining lines of code? 1. | echo "Hi. I'm cmd.exe." 2. | powershell 3. | ...
1
vote
1answer
103 views

Automating music transcode

I want to be able to transcode my music library (lots of nested folders, no space) to a different bitrate. I've been doing this manually with Media Coder, but I've noticed that not every file ends up ...