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

Rename a dynamic folder in windows using batch script?

C:\Users\xxxx\Downloads\CarepointServiceR2_CarepointServiceR2_**109**_artifacts The Number which is highlighted is dynamically changed each and every day.I have to rename this like ...
2
votes
0answers
46 views

Delete folders in subfolders [closed]

I have about 3000 folders Each folder contains titlefolder typefolder -content I need to get rid of the typefolder and have the content moved up one to the titlefolder. I know I can ...
0
votes
0answers
91 views

Windows 8.1 bizarre audio issues

I have an Asus K52JT laptop running Windows 8.1 since three months ago. Audio speakers have worked fine since this week. At startup it is working, but after a while (15-60 minutes) it eventually stops ...
0
votes
1answer
54 views

Delete a file inside subfolder using bat

I know the name of the subfolder inside which the file I want to delete is located. The name of the subfolder is "My Subfolder" and the file I want to delete inside the subfolder is "The-Bad File.txt" ...
0
votes
1answer
35 views

Restart Service on Remote System Batch

Just having trouble with a batch and need some clarification on 'IF', 'ELSE' and 'GOTO' @echo off sc \\RemoteServer stop "My_Service" :query sc \\RemoteServer query "My_Service" if %state% == 1 ...
0
votes
1answer
159 views

How to extract part of a string between 2 delimiters, in Windows batch file?

I have a variable length string starting with START and ending with END as delimiters. I want to extract the string between START and END. I tried doing SET _result=%String:~6,-4% ECHO %_result% ...
1
vote
2answers
103 views

Check Multiple if conditions in bat file/ and operator in bat

I want something like this:- if %ERRORLEVEL% GEQ 1 && %ERRORLEVEL% neq 255 GOTO Not closed by user . But this syntax is not working.
1
vote
2answers
117 views

How to schedule taskkill in bat file

I want something like this:- taskkill 7z.exe after 50sec. code 1 code 2 code 3 7z.exe will be killed after 50 sec but the program should execute code 1 code 2 code 3 without waiting for the ...
0
votes
0answers
39 views

How can I use Acrobat Pro to calculate the percentage of pages in a document that have more than x words of text? How can I do this in bulk?

I use ABBYY FineReader Pro 11 to OCR old documents, and I need to run a script through a folder of 800-some PDF files so that I can calculate how many pages out of the whole document have text on ...
0
votes
1answer
223 views

How to show extraction progress of 7zip inside cmd?

7z.exe do not show any extraction progress in cmd."C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I ...
1
vote
2answers
161 views

Use Batch findstr for files with whitespaces

I'm trying to search for a string in a given file. This file can have whitespaces in its name and I'm having trouble with the Batch file. I can easily do this by console getting the correct results: ...
0
votes
1answer
157 views

Create a Batch file (.bat) to search an string through multiple files

I am using Windows Server 2008 and I need to create a Batch file (.bat) to search for a given string in 20.000 to 30.000 files located all in one folder in the same level (without subfolders). I have ...
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 ...
0
votes
1answer
107 views

How to filter/pipe wmi output from batch or command prompt

I need to write a little script for a specific HDD. I use the following command to detect the HDD by size: C:\>wmic logicaldisk get size,freespace,caption | find "750153363456" E: ...
0
votes
1answer
662 views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
1answer
60 views

Formatting date to desired format in batch file

I am running a batch file as @echo off set yy=%date:~-4% set mm=%date:~-7,2% set dd=%date:~-10,2% set MYDATE=%dd%%mm%%yy% md UserRecords%MYDATE% cd E:\testuser\OpenDJ-2.5.0-Xpress1\bat ldapsearch -h ...
0
votes
1answer
104 views

Bat file fails when file name has spaces

I have this batch file that process some video files in a batch. Things work just fine as long as the filename has no white spaces in it's name. If the file name (test movie.avi) has white space it ...
0
votes
2answers
137 views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
0
votes
2answers
79 views

Make Batch File Cmd Window Stay Open For X Seconds

I'm running a batch file on a server to dump a MySQL database. I'd like to have the cmd window stray open for, say, 20 seconds, and then close. That's so if I run it manually I can see that it ...
1
vote
1answer
100 views

Batch: How to run a program when the computer is idle and stop when it's used?

I need to run a Windows batch (or any other command line software would do fine) that would run a program when the computer has been idle for a minute and stop it when it's used. I should obviously ...
0
votes
1answer
66 views

Send msg on skype with batch file [duplicate]

How can I send messages to my friend on skype with a batch command line? i've tried, but is used to send images or other media. "C:\Program Files\Skype\Phone\Skype.exe" /sendto:XXXXXXX Test
0
votes
0answers
38 views

how do you monitor the progress of a command line program?

We have some custom command line programs at our Windows shop. These commands are scheduled to run (from within bat files) at regular intervals using the Task Scheduler. Our tasks pull data from ...
0
votes
0answers
18 views

Windows Batch with <> markers inside

I have got batch which is running by external program when something will happen. C:\scripts\beta_tkt2zamako3.pl %* There are incoming strings like TEST TEST TEST JEDEN TEST <\CR> TEFFD GGH YYY ...
1
vote
2answers
386 views

batch - File last modification time with seconds

I want to know when a file has been modified for the last time. I can get these infos using the following batch script: FOR %%i IN (myfile) DO SET modif_time=%%~ti The problem is that I need ...
1
vote
1answer
114 views

Running vim script exits batch file? (Windows .BAT/.CMD)

Trying to run a vim script as part of a batch file with vim -u NONE -S dothis.vim but what is puzzling is that the batch file exits after this line instead of continuing with the next statement. ...
1
vote
2answers
56 views

Stop a “completly hidden batch file”

I'm running Windows 7 64 bit Home Premium. My new internet connection is a bit buggy, and I need to keep reconnecting. To make sure my computer keeps connected while I'm away, I created a script that ...
0
votes
1answer
76 views

Batch - call another batch and have it excuted

Working on getting some batch files working. The first one I have (which works) takes a .rar from one drive to another and give the dir same name as the files put to rar and then copy a rename.bat ...
0
votes
1answer
33 views

Is there a command that allows me to set a prefered IP Address for an adapter? [duplicate]

I've got some customers who should use a specific IP in their network adapter, but manually setting it is a pain sometimes. So I would like to know if there's a shell command / batch that allows me to ...
2
votes
1answer
59 views

Rename files with a batch but only the ones ending on “*D.txt”

I want to rename all the files in a single directory but only txt-files that end with a D. Here is what I tried in a batch... but both didn't work. -----try1----- @echo off set ...
0
votes
3answers
82 views

How do I change my username on Windows 8? Or get around this?

My username on my computer is BreeBreeBRAN™ I'm trying to make a batch file to delete the firefox temp folder and run it as a task on startup. So my batch is cd ...
1
vote
2answers
133 views

Batch convert to UTF-8 a directory having both UTF-8 and CP-1251 files

I have a directory containing files, some of them are UTF-8, some are CP-1251. I want to convert the ones that are CP-1251 to be UTF-8, but without corrupting the UTF-8 files. I tried using iconv -f ...
0
votes
1answer
115 views

writing a batch file: having a batch insert a command into another cmd-based program

i'm trying to have my batch open another cmd based program, wait some time, then input some commands into the cmd-based program, but can't find any documentation on how to do it. this is the batch ...
0
votes
0answers
59 views

how to close running batch file for few hours daily

We have a batch file which runs continuously in our windows 2003 server because a Java application is depending upon that. However, now I wish to close it automatically for half an hour every day at ...
2
votes
2answers
140 views

Can I turn Caps on/of from a batch file in Win 7?

I have a very old program that needs the commands to be all caps. when I exit this program I often forget to put the Caps Lock off (very annoying). I had a batch program in XP that did this but can't ...
0
votes
1answer
32 views

Batch script to find and delete all folders named PGP Corporation

for /f %%i in ('dir /a:d /s /b PGP Corporation') do echo rd /s %%i So this is what I have and it works great for one word folders e.g. c:\crap, but if I were to user "c:\my crap" all it will give ...
-1
votes
1answer
43 views

Removing folders with a batch-file

You will probably recognize the script below especially this command which was posted here over a year ago: for /f %%i in ('dir /a:d /s /b *PGP Corporation*') do echo rd /s %%i However, I am ...
0
votes
2answers
105 views

Copy folders from server to client created between specific time stamps?

I want to create a batch file that will delete the folders at my specified destination, then copy all folders modified after 7AM yesterday from my source; this is because I want to be able to run this ...
0
votes
3answers
161 views

Need help in extracting info from multiple html files [req: batch/c++/notepad script]

I have about 100+ files from which I need to extract certain info and copy them to separate files. They're all html files, and have html coding. File format: <html> <head> ... ... useless ...
0
votes
1answer
41 views

Moving directories based on .md5 file to restore original directory structure

I ask for help regarding some scripting. I have a directory "J:\To_Sort" which contains another 1164 directories. Inside the "To_Sort" directory I also have 37 *.md5 files. These MD55 files contain ...
1
vote
0answers
65 views

Task doesn't complete if it is run by System (so it's hidden)

I'm making an application using Python to parse a webpage. For reference, this is the program's code: import csv from selenium import webdriver from selenium.webdriver.common.keys import Keys import ...
0
votes
2answers
77 views

Concrete cases for CMD/BATCH use [closed]

Please excuse my inexpertise. I don't have much experience with the command line. From my searches, the main reason for CMD use(*) is automation. I haven't, though, found concrete cases. Most ...
-2
votes
1answer
39 views

Your AHK script for javaw priority?

I would like to know something for minecraft. Following your post here : How can I automatically change the priority of Javaw.exe when loading Minecraft? . Which AHK script you used for change the ...
0
votes
1answer
43 views

batch file to display nicely compare files results

I'm looking for a batch code to prepare a file with the differences between two files in a nice way, Maybe highlight individual lines in a different color, Does anyone have such a script?
1
vote
2answers
54 views

Possible to make user-specific setting changes when creating a new Windows user profile?

I'm configuring a Remote Desktop server, and each user account needs to have a predetermined but unique value set in a text (INI) file in %APPDATA% for a piece of software configuration. I've created ...
0
votes
0answers
245 views

Windows batch “rmdir /s /q” empty a folder but it is still there (but 0KB) and can't access

I use Windows 7 x64. I have a svn checkout Working folder, say "Working". When I use a batch file or just open CMD, I did del "%currPath%\Working" /s /f /q rmdir "%currPath%\Working" /s /q The ...
0
votes
1answer
74 views

Parameters for loading PDF files in MuPDF with different resolution

I'm running MuPDF in Windows 8.1. It works fine for the most part (it allows file association). But there are no CFG/INI files for manipulating parameters and no app-specific option menu in the ...
3
votes
1answer
185 views

Start Windows batch file maximized

I've written a batch file that I plan on distributing to a few dozen machines. It automatically checks the working state of several devices. I recently added a "menu" at the start of the script, ...
4
votes
1answer
303 views

How to determine if process in windows “has no parent”?

I am trying to figure out a way through the Windows command line to determine if a process has no parent. I know all processes technically have a parent that is controlled by the OS or whatever, but ...
1
vote
1answer
124 views

Changing virtual memory using batch

I am making a program using batch to boost pc performance and I have now come to the stage where I need to edit windows virtual memory to a size that I can change in the code. if needed it can be done ...
1
vote
1answer
314 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 ...