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
16 views

batch rst2html conversion in a bash script

I have multiple .rst files in multiple folders and sub-folders on my Debian system. How can I create a script that converts all the .rst files in html (with the rst2html command) and creates new ...
0
votes
0answers
15 views

Batch file - Copying folders with percentage

I'm currently trying to create a batch file, which actually copy a folder from a server to a clients machine. And I'm playing around with batch file, using xcopy, and it gives me the percentage of ...
0
votes
2answers
29 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
0answers
33 views

Batch file: how to check if Windows 8.1 update is installed [duplicate]

Now that Windows 8.1 Update (a.k.a. KB2919355) is out, and the Windows 8.1 Update is mandatory to get security updates: How can you check if Windows 8.1 Update is installed from within a batch file? ...
0
votes
0answers
21 views

How can I batch convert subfolders of images into single PDFs?

I'm surprised I couldn't find an easy script for this online. I have a directory with lots of subdirectories, each filled with TIFFs. How can I batch convert subfolders of multiple images (TIFFs) into ...
0
votes
1answer
33 views

Batch file to search for and delete lines containing specifc text in a csv

I have a bat file that searches a directory for specific .csv files names, and copies and amends the lines into a new .csv file. However, some of the lines of the original .csv files are not ...
0
votes
1answer
32 views

How to access cmd of another computer from my computer's cmd?

How can I access the Command Prompt of another computer from my own computer's Command Prompt in Windows7? I am hoping that I can do something like that into a batch file: Enter \\ComputerA -u John ...
1
vote
2answers
48 views

Batch file, skip a step if an error occurs

I'm trying to write a script that automates copying some files from two external locations using Robocopy. I want the script to skip a step if one of the locations is unavailable. I'm using the ...
0
votes
3answers
281 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 ...
-2
votes
0answers
24 views

Win 7. Use the contents of manually updated .xls to create a batch file that deletes files in folder to match spreadsheet?

Win 7.Use the contents of manually updated .xls to create a batch file that deletes files in folder to match spreadsheet? Hi. I have a folder that has a number of subfolders. Each sub contains lots ...
0
votes
1answer
30 views

Can't save batch file shortly after running it on Windows 7

I'm working on a batch file in Windows 7 Ultimate. I'm using notepad++ with the runme extension. When I run the batch file and make some changes directly after that, I am not able to save the .bat ...
50
votes
12answers
22k views

How to supress “Terminate batch job (Y/N)” confirmation?

In cmd, when we press Ctrl+C we get the target application terminated but if the target application is called from a batch file, we get this "Terminate batch job (Y/N)" confirmation. I can never ...
0
votes
1answer
18 views

How to split video to 3 parts by ffmpeg?

I want to split video to 3 parts in batch mode. So, I have this code: @echo off for %%i in ("*.mp4") do ffmpeg -i "%%i" -vcodec copy -acodec copy -ss 00:00:00 -t 00:00:05 D:\Ebook\%%~nxi_1.mp4 for ...
0
votes
2answers
23 views

moving a file based on its extension in BATCH

I am making a batch script to move files based on their extension, so for example: video.avi would go to Videos text.txt would go to text files I am using the drag and drop technique of getting the ...
18
votes
11answers
14k views

How do I batch change the date taken information in EXIF data?

I use F-Spot to manage my images. For one set of images, the dates somehow got messed up and they all are marked as September 1st 2007. I'd like to change the date taken information to a different ...
0
votes
2answers
326 views

Print current time (with milliseconds)

I want this command in windows with cygwin installed, so any Linux command will work for me.
1
vote
1answer
4k 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 ...
0
votes
1answer
22 views

Batch scripts to read a list then delete from a directory

I need to have a batch script that reads a file, and from a list in that file deletes items from a directory.
0
votes
1answer
43 views

Install a Teamviewer Host Silently with Custom Password

So our company has the custom Teamviewer hosts that we can run silently with the /S switch. The issue is that we can't connect due to it not setting a password that we know. Does anyone have any ...
28
votes
2answers
16k views

How does the Windows RENAME command interpret wildcards?

How does the Windows RENAME (REN) command interpret wildcards? The built in HELP facility is of no help - it doesn't address wildcards at all. The Microsoft technet XP online help isn't much better. ...
1
vote
2answers
2k views

How to create a desktop shortcut from a batch file

I know there are many posts on this issue but there is a minor twist to what I need to do. I can figure out how to create a shortcut with an argument like this: "C:\Program Files\My App\App.exe" /s ...
1
vote
1answer
18 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 ...
0
votes
0answers
29 views

Extra space when starting application with arguments using batch?

Any idea why there is an extra space before the argument? Thank you. http://s7.postimg.org/ee1fbtye3/extraspace.png @ECHO OFF SET EXEPATH=D:\Games\StarForge\StarForge.exe SET ARGS=-nolog START "" ...
0
votes
1answer
37 views

How do I write a batch script that iterates through all png files in all subfolders and does an action?

I'm looking to build a small batch script that executes the command line of pngout.exe So far I've got only this down for %i in (*.png) do "g:\myfiles\_pngout.exe" "%i" /s0 /c6 However, for that ...
0
votes
0answers
20 views

Batch script to get data in an infinite loop and post to a URL

Here is my working script for Unix. It gets data from command line and posts this data to a URL: #!/bin/bash while read line do echo `curl -XGET "http://domain:8080/test/$line"` done I tried ...
0
votes
1answer
15 views

How to pass CLIs in a remote linux server from windows batch script?

I am able to connect to a remote linux server by using start C:\Users\pankmish\Downloads\putty.exe -ssh stag -l username -pw password But Now i am trying to give linux CLIs from same batch ...
0
votes
2answers
1k views

Cut a part from a filename (windows batch)

I got files named like this: cam1(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam2(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam3(word1 word2 wordN) (24-04-2012 00-11-13).mpg Need to cut (word1 ...
1
vote
3answers
2k views

Kill processes with batch file?

Whenever I start my computer up, there are numerous programs running in the background that I usually don't need , which take up a decent amount of memory. Is there a way to kill processes in a ...
1
vote
1answer
17 views

Batch adjust / increment file date by an offset?

Suppose I have a folder of 100 files, and they have created/modified dates that are wrong, because the real-time-clock in the device that wrote them was wrong. I want to add the same offset to the ...
1
vote
2answers
122 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
1answer
29 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 ...
0
votes
2answers
36 views

Batch File - Know if disk is partitioned or not

I am working on Winpe environment, how to get informations if the disk 0 is partitioned or not to launch specific commands on each case i have tried this, but how to get this works properly in a batch ...
0
votes
1answer
61 views

How can you batch process a directory of images using Intensify Pro?

I have a directory of 4000+ images that I took (timelapse). Since they are all nearly identical, I can be pretty certain that whatever tweaks I want to make to one can be blanket applied to all. How ...
1
vote
1answer
1k views

Windows task scheduler not running batch file on network drive

I have a batch file that I'd like to run with the Task Scheduler. Running the batch file manually works fine. If the batch file resides on the C:\ drive, task scheduler runs it fine, but if the ...
0
votes
0answers
24 views

Batch Script related issue

I have written following script which works absolutely fine on my system. @echo off setlocal enabledelayedexpansion FOR /F %%i IN ('wmic /node:%1 computersystem get Name') DO SET A=%%i FOR /F %%i ...
1
vote
1answer
20 views

Recursively Rename File Extensions Across Multiple Drives

I have this for a batch file. I know squat about batch files. FOR /r %%x IN (*.BMP,*.GIF,*.JPG,*.PNG) DO REN "%%x" *.jpeg Which works fine locally. I need this to work across multiple drives ...
0
votes
1answer
34 views

I'm trying to run a batch file that test for 4 different files then based on the correct file present it runs the correct command

:: batch file to run backup @echo off setlocal set backup1=="F:\my backups\Disk_1_DataBAckup" set backup2== "F:\My backups\2_backup_data_to_disk2" set backup3=="G:\my backups\3_backup_data_to_disk3" ...
7
votes
3answers
2k views

How to disable the output of 7-Zip?

I use 7-Zip to compress files inside a batch file like this: ...\right_path\7z a output_file_name.zip file_to_be_compressed I got the following output: 7-Zip 4.65 Copyright (c) 1999-2009 Igor ...
0
votes
3answers
38 views

How to read values in a particular column of a CSV file in Batch?

I am planning to write a batch script wherein I need to scan the values from a particular column of a CSV file one by one and store them in a variable for further processing. Say, following is the ...
1
vote
2answers
48 views

Can I use shell: commands to change directory in CMD?

I am trying to create a batch file which installs favorites on all company PCs and Notebooks. Is it possible to change the directory in CMD using shell:favorites? I need this because on the ...
0
votes
0answers
22 views

Can you help me make this mass un-archeiver batch better

This batch works fine so far, I feel I have come far being that I have only been doing this as a self learning project for a few days with no experience. I am asking if you guys can offer me any ...
0
votes
1answer
1k views

Batch Conversion of PaperPort MAX Files

I've got a library of MAX files from an old Visioneer Scanner that used ScanSoft PaperPort. I don't have the PC that I used to scan them anymore, and I don't have the CD for PaperPort. Does anyone ...
0
votes
1answer
37 views

Windows 8 located all drives and run command on each

This is what I have so far @echo off for /f "tokens=2 delims==" %%d in ('wmic logicaldisk where "drivetype=3" get name format:value') do echo %%d output is correct @echo off FORFILES /P C:\ /S /M ...
0
votes
0answers
9 views

Wordpress permissions Batch file

I'm trying to setup permissions for Wordpress on IIS 7.5 running in Win7. I created a Batch file to apply permissions. Can anyone let me know if something is wrong, Or needs adding to? Begging of ...
1
vote
0answers
21 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 ...
0
votes
2answers
49 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 ...
1
vote
1answer
2k views

Trouble copying a folder from my computer to another network computer using ROBOCOPY

I am trying to write a batch file to copy all files and subfolders in a folder from my local machine to another machine on our network. I am trying to use the ROBOCOPY command and would like the ...
0
votes
1answer
46 views

How to open multiple tabs in IE8 from batch file?

Upon searching for an answer to this question, I stumbled upon an almost identical question on this site, to which someone answered: "For launching multiple URLs in tabs in a single IE window, use the ...
6
votes
4answers
3k views

how do you make a letter password generator in batch?

I'm having a hard time figuring out how to make a password generator with random letters in it. For example, ASWED-ASDWAD-EFEST. So far I can only make random numbers by using the code @echo off ...
1
vote
4answers
9k views

How can I get the current system date and time using a command prompt?

I would like to get the current system date and time using a command prompt. How do I get the date to be in a specific format, MM-DD-YYYY HH:MIN AM/PM?