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
votes
2answers
18 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
-8
votes
0answers
32 views

Write a Batch Script [on hold]

Write a batch script to count the no. of columns in csv file, where each column is separated be a comma. I am new to batch scripts. Could anybody please help me in writing batch scripts for the ...
0
votes
0answers
14 views

VLC batch conversion from m3u8 won't move to next file without user input

I have a batch file that is supposed to open every m3u8 file in a folder, stream it into a mp4 file and move to the next one. The lengths of the videos vary and the m3u8 files don't appear to have any ...
0
votes
2answers
26 views

Windows DOS Command for Finding folder name with specific characters & select it

Trying to write batch file code for copying contents of a folder with path "C:\ABC" to another folder whose exact name is unknown ( its a Profile data folder of firefox) Profiles of Firefox are ...
0
votes
0answers
18 views

enviroment variable %PROGRAMFILES% with 2 executions

I want to install a program with a batch-file to the Program Files folder. Afterwards I want to copy a folder to the same folder. Here is an example: SET SCRIPT_LOCATION=%~dp0 SET ...
0
votes
2answers
18 views

Not process a variable in a string immediately in batch script

I'd like to know if it's possible to process a variable containing a variable not immediately but only when asked. For example this batch: @echo off setlocal EnableDelayedExpansion set VA=Two set ...
0
votes
0answers
23 views

Windows batch script: Manual power up vs Wake on Lan (WOL)

OK, I have a (win 7) desktop computer with WOL set up so I can turn it on remotely, it works fine. Next thing, on this computer I have a batch script, which runs at startup and starts various apps, ...
0
votes
0answers
17 views

batch files compare before and after before deleting

I use two commands in this batch file for /r %%n in (*.wav) do xma2encode "%%n" for /r %%n in (*.wav) do del "%%n" Sometimes xma2encode doesn't create the .xma file like it is supposed to. If it ...
-1
votes
1answer
19 views

when executing batch file cmd only outputs so much

I write simple batch files to automate simple processes along the lines of this for /r %%n in (*.wav) do del "%%n" PAUSE when i execute this command the cmd quickly scrolls through all the files ...
-1
votes
0answers
11 views

batch conversion from one format to another using external command line program

I am trying to convert several audio files from one format to another proprietary format. The tool I use to do the conversion doesn't allow multiple files to be converted at once through the program. ...
1
vote
1answer
23 views

Should a scheduled task remain in the “Running” state?

I'm new to using the task scheduler and I'm using it to run a batch file provided online when the computer boots. I r-clicked it and told it to run. It did and all is fine, but the Status of the task ...
1
vote
3answers
41 views

Processing files with names that contain a “^” (Carat), inWindows

I'm having trouble processing files with names that contain a "^" (Carat). What I'm noticing is that if I use double quotes when evaluating the filenames, the "Carat's" are doubled. If I don't use ...
1
vote
1answer
25 views

Batch convert txt file encoding

I have about 700 files that were the results of a closed caption software process. I can open the files on my PC or Mac in a GUI, but when I open it on the server with nano, I get this: ...
1
vote
3answers
51 views

In windows, is there a way to count the amount of times a string appears in a file

I am currently trying to write a batch script and at this point, I need to find a string, "null", and determine how many times it is shown in the file. I'm downloading an API from a website ...
1
vote
1answer
46 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" ...
0
votes
2answers
18 views

Can wget decode uri file names when downloading in batch?

Normally when downloading files using wget, the filenames are encoded. In example: wget -c --content-disposition "https://class.coursera.org/ml-005/lecture/download.mp4?lecture_id=1" and the saved ...
0
votes
1answer
33 views

Deleting files older than X days from different directories using forfiles

I would like to create a batch file that deletes files (only files, not folders neither subfolders) from different directories (100+ different directories) older than 1 day and have this batch run ...
0
votes
0answers
31 views

Batch file - List Files by extension

I am looking to get a total number of files by extension in a folder that contains many subfolders. Example Output: .doc: 6 files .xls: 10 files etc I want to either output the results into a ...
0
votes
0answers
22 views

Batch Script to ZIP Together Files With Same Names

I have 314 vector images I'm looking to submit to the various stock image sites I'm a contributor to, but a number of these require that the vectors be bundled into a ZIP folder with a JPEG preview ...
-2
votes
1answer
33 views

Loop Counter not working

@echo off setlocal enableextensions enabledelayedexpansion set /a eng_aud_count=0 set /a eng_sub_count=0 For /f "tokens=1-9 usebackq delims=.:^)^( skip=2" %%A in ("MY text File") do ( set trck=%%B ...
0
votes
0answers
18 views

Special Characters in Folder Names Cause Delete by Batch File to Fail

I'm trying to delete empty folders via a batch file, in Windows. for /f "usebackq delims=" %%d in ("dir V:\Temp /ad/b/s | sort /R") do rd "%%d" fails on folders with special characters - ...
1
vote
0answers
7 views

Simulating errorlevel

My command takes long to run but I expect that it can finish with error and I want fail fast in the batch loop in this case. How do I produce the error level? I tried a batch file with exit 1. But, ...
0
votes
1answer
31 views

Using batch to verify a process is running with WMIC

I am attempting to write a script that will check if a process is running (in my case a virtual machine) @echo off wmic process where name="VirtualBox.exe" | find "GitHubEnterprise" /c > tmpcount ...
0
votes
0answers
16 views

Batch removal of watermark from a pdf using pdftk

Is there any script available or possible to remove a specific and a very large watermark using python. How to remove watermark from pdf using pdftk? I followed everything in the above link but i've ...
-2
votes
0answers
16 views

Multiple Directory Creation based on domain username and set file sharing script request

I need a script that will do the following. Create multiple directories labeled by domain usernames (I'm thinking pulling the usernames from AD and add the username to each command.). In a shared ...
0
votes
0answers
33 views

Batch replace non-ASCII characters in filenames

I'm looking for a shell script that will recursively replace non-ASCI characters with underscore or just remove them. The issue is that a drive with files, created on Linux, has to be used on ...
0
votes
1answer
40 views

mklink in batch file keep returning insufisent permission

I made a code to execute an simbolic link between my Music folder and the music stored in my other hard drive @ECHO OFF SET /p bn=Band Name : md "%E:\Music\%bn%" SET /p dl=Album Name : mklink /d ...
0
votes
1answer
24 views

Batch script to only run command for 1 machine

I have a Windows GPO that runs a batch file startup script to disable NetBIOS. It normally looks like this: wmic nicconfig where (TcpipNetbiosOptions!=null and TcpipNetbiosOptions!=2) call ...
0
votes
0answers
12 views

Handle.exe creates Handle64.exe & hangs thereafter

On windows server 2008 R2 ,In a folder I have handle.exe along with psexec.exe and a batch file name test.bat with following content: psexec -s D:\data\handle.exe -p taskhost.exe > ...
0
votes
2answers
52 views

Batch file rename with random alphanumeric

I am looking to rename a bunch of images (all with .jpg extention) with random alphanumeric names. Example would be 08kDRH1s.jpg or 0FwzUc3.jpg. Doing some searching I did find a few batch scripts ...
0
votes
2answers
44 views

Batch program to move shortcut file

I'm writing a short batch program to move a few shortcuts. The problem is that Windows returns, "Can not find the file specified". I imagine this is because either it's considered a system file ...
0
votes
0answers
33 views

windows 7 batch file change desktop background

i want to write a batch file that changes the desktop background this is what i have reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d c:\j2Global\backgroundDefault.jpg reg ...
0
votes
0answers
24 views

Automating SMTP Configuration

The following is an excerpt from a series of instructions I am following as a list of company procedures they would like me to automate. Is the following achievable through command line/batch, and if ...
0
votes
3answers
59 views

windows command prompt change directory is now changing directory

I am trying to change directory from C drive to E drive. but the its not happening through following code. C:\>cd E:\Program files\wkhtmltopdf C:\>echo %cd% C:\ It says C:\ is current ...
0
votes
1answer
23 views

need to copy folder with sub folder without answering prompt

I need to copy folder A to folder B and folder A is having subfolders. I have tried xcopy and copy both are stuck. C:\Users>xcopy sushantg\A\* sushantg\B /s /e /h /T Does sushantg\B specify a ...
0
votes
0answers
36 views

How to automate software registration via batch or script

We use a program called vspace created by ncomputing. This allows for example 4 stations on a single host machine. So, each time this is installed we have to fill out the registration form which pops ...
0
votes
0answers
12 views

Batch file to add specific string in a XML file and zip it to TAR afterwards

To start, I'm not a real hardcore programmer so bear with me. I searched the web for help and I got already some steps further to completion. What I'm missing, how to add a specific line after ...
0
votes
3answers
46 views

Create .bat to do a task at a certain time

I'd like to create a .bat file in Windows 8.1 that does a task (specifically, close a program/kill a process) at a certain time. I usually use the command line (which, I believe, works as a .bat ...
0
votes
1answer
38 views

Batch file. If statements in if statements

I am trying to write this code: If %dropmode%==on ( If %drop% LEQ %potiondrop% ( set /a potion=%potion%+1 ) If %drop2% LEQ %potiondrop% ( set /a potion=%potion%+1 ) ) So, condition "if %drop2% LEQ ...
0
votes
0answers
28 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
0
votes
1answer
24 views

Server 2012 Modifying sharing privileges on a folder via script

I have recently been employed by a small company as a software engineer. I am stepping a bit out of my element and doing a bit of IT work for them as needed as well. Currently I am going over some ...
0
votes
0answers
51 views

Managing windows updates via Batch file

I have an instance of windows server 2012 and I am trying to get an idea of how to accomplish the following requirements via a batch file. Turn Windows Update to manual Change Import Updates to the ...
0
votes
1answer
29 views

.bat file to create a Library with icon in Windows 7 and 8

Is it possible to create a .bat file that creates a Library with an icon in Windows 7 and 8. Of course this can be done by following the already created tutorials online like Change Your Windows 7 ...
0
votes
0answers
29 views

Batch file with (Java invocation) wildcard expansion works on one Win 7 machine, fails on another

I'm using a Windows batch file to launch a Java program, using wildcard expansion to set a load of JAR files on the classpath similar to the below: java -cp "MyLibFolder\*" com.stupid.StupidProgram ...
0
votes
1answer
28 views

Could someone explain me the concecpt of “Recursion” in the context of the FORFILE Command (batch)

i'm having some trouble to understand the concept of recursion while reading the explanation for the FORFILE command. for the parameter /s it says in the reference: /s: Instructs the forfiles ...
0
votes
2answers
74 views

Using FORFILES to delete Folders older than 2 days

here is what i'm trying to do: Use the forfiles Command in a .cmd script to delete folders from a specified path that are older than e. g. 2 days on a win7 machine. Edit: The Situation is the ...
2
votes
3answers
38 views

How to batch convert multi-page PDF into individual jpg files

I found these posts on converting a PDF to JPG using ImageMagick. However, I have a 12 page PDF I want to convert into 12 separate high quality jpg files. Looking for the least tedious way possible. ...
0
votes
0answers
46 views

How to change the Start In property via CMD for an .lnk

Context: I have folders with presentations being created dynamically except currently an instance of our ppt&macro is being dropped in each folder with the presentation. The presentation will only ...
0
votes
0answers
17 views

“Print all” option causes unwanted cropping of .tiff files

I am printing multiple attachments using the "print all" option and .TIFF files are not printing fully, the edges are cut off. How do I prevent the "print all" option from doing this?
1
vote
1answer
31 views

Can't find Error in this syntax (If statement in forfiles batch)

no matter what i try, i don't get the following line in a batch file on my win7 64-bit machine to work: forfiles /P "I:\testroot" /C "CMD /C if /i @FILE==testung.txt del /s @FILE" The code runs, no ...