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
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
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
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 ...
-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
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
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 ...
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
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 ...
1
vote
1answer
19 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
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
0
votes
4answers
64 views

Batch Script to find out whether a host is up or down

I need to scan several systems in the network within IP range 172.18.x.x to 172.25.x.x and check whether each of them is active or not, and then dump the result in a file. Following is the script: ...
0
votes
0answers
26 views

Batch Files - Script

I have a little .cmd script that executes few commands like mapping network drive, output some info to log file and copy the file on network including renaming the title based on date/time. This ...
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 ...
-1
votes
0answers
30 views

FORFILES how can I prevent preforming actions on destination folder

Windows 8 FORFILE command I have this script, and I am trying to stop it from running on the destination folder while allowing it to scan the rest of the drive. Right now, it scans the system drive ...
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
0answers
14 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 ...
0
votes
0answers
9 views

SoX Unable to batch process more than 100 files

I'm using this: cd %~dp0 mkdir converted FOR %%A IN (%*) DO sox %%A -b 32 "converted/%%~nxA" rate -I 192000 pause If I try to drag-drop more than 100 files it simply does nothing. How might I ...
0
votes
1answer
25 views

Renaming all files of a particular type to lowercase batch

In this link Is there a way to batch rename files to lowercase? there is a command given for /f "Tokens=*" %%f in ('dir /l/b/a-d') do (rename "%%f" "%%f") This works when i want to convert all ...
1
vote
1answer
36 views

Batch file to automate a task

I run a job that creates 35 text files. The problem is I need to transmit these files after they are created, but before I can send them I need to go into each file and remove a space in order for the ...
1
vote
0answers
41 views

Nested environment variable does not expanded

I can't explain the below strange issue. I have two system variables: PYTHONHOME = D:\Tools\ISDC_Tools\Scripting\Python.2.7 PYTHONPATH = %PYTHONHOME%;%PYTHONHOME%\Lib After creating a new cmd ...
2
votes
1answer
46 views

Windows Batch - default choice with timeout

In a cmd window, I want to prompt the user for a set of choices (denoted by letters), one being the default. The user can key in a letter or hit Enter, in which case the default choice will be ...
1
vote
1answer
53 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 ...
0
votes
2answers
71 views

Changing Windows 7 Desktop Background

i've been searching online for a batch solution to change the desktop background of Windows 7 Ultimate 64 bits, and after several attempts, i could only get it to work once but never again... I'm ...
1
vote
4answers
61 views

Renaming multiple files inside a folder using Windows batch commands

This is taking the post located here and spinning things up a bit. As typical, I'm trying to rename several images inside a folder to be the name of the folder they're in and then add the suffix ...
1
vote
3answers
59 views

Batch file, copy files beginning with (A,B,C,D,E)

Instead of running xcopy 6 times, is there a way to define an array of files to copy? xcopy \\\from_location\\(A,B,C,D,E)*.txt \\\to_location\
0
votes
0answers
22 views

How to generate DDS (DirectX Texture file) from multiple images?

I am creating a direct X application and I want to put all textures in one DDS file. I have thousands of little .png images (48x48) and I want to put them into one big DDS file without having to ...
1
vote
1answer
109 views

run .hta as adminstrator

Simple question how do you run a .hta file as an admin? When I try running runas /user:Grants-laptop\administrator computerinfo.htafrom command line I get this error: RUNAS ERROR: Unable to run - ...
0
votes
0answers
8 views

Build and run VC++ project with batch script

I want to build Visual C++ projects in both debug and release mode and then execute them with a single batch file. How can this be done?