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

Batch to check if removable disks are connected. If yes, execute another command

I know how to check if there are removable disks connected with a CMD command wmic logicaldisk where drivetype=2 get deviceid, volumename, description But now I would like to make a batch that ...
0
votes
1answer
65 views

How would I make a batch that asks user input for timeout time?

I have a batch that allows me to hibernate with timeout but now I would like it to ask me the time for timeout. So it would be something like below: Batch asks for %value%: (user would write a ...
0
votes
0answers
18 views

Batch editing audio files

I have about 85 ogg files that I need to edit. What I need to do is clip off the beginning of each one, as there is some silence at the beginning. This is not uniform across the files. Audacity seems ...
2
votes
1answer
74 views

Normalize and remove silence from mp3s

I have a large number of audio files, each of which contains the pronounciation of a certain word. I need to batch process these files such that they all sound equaly loud when I'm finished with them. ...
0
votes
4answers
79 views

Find IP in error.log

I'm having trouble building a batch code for find IP in a log using a text filter. For example: this line from Apache web server error.log: [Fri Dec 13 23:32:47.531250 2013] [access_compat:error] ...
1
vote
2answers
96 views

Detect a change in the number of files or folders

The following script is supposed to check if the number of files and folders has changed since the last time the batch-file was run. If so, it prints a message and updates the counts. Unfortunately ...
0
votes
2answers
116 views

Batch converting aif to wav

I have a few dozen AIF files that I need to convert to WAV. I have converted a few by opening them in Audacity and exporting them to WAV, but this is very slow. I would like to convert them all in ...
2
votes
1answer
384 views

Run batch file through Windows 7 scheduler to rename folder on network drive

I'm trying to do what I believed would be very simple: have a .bat file that rename two folders on a network drive. The script works fine when running from prompt, but not from the scheduler. Any ...
0
votes
0answers
34 views

Batch rearchive zip into 7z using best options and asking for each what to do

Batch repacking zip archives into 7z this one helps a bit, but I would like to get asked for each ZIP files to what to do(opts: delete, repack, leave as it is), and idk if this script does, but after ...
0
votes
2answers
46 views

Check if one variable matches the beginning of another in Batch

In a batch script, I need to redirect the script flow according to whether one variable matches the beginning of another. Particularly, I want to do something like this: IF %CD% BEGINSWITH ...
1
vote
1answer
131 views

How do I change the power plan using batch

I would like to know how to change the power plan in Windows 7 to high performance using a batch file. I am making a program that boosts pc performance.
2
votes
0answers
94 views

How could I disable windows effects through batch

Is it possible to disable these options shown in the picture below using a batch file. I am making a program that can boost a computers performance can any one help. my OS is windows 7 32bit.
0
votes
0answers
40 views

Batch script for downloading and installing from internet

I'm trying to build a script that will download a specific file from the internet and install it automatically! My problem is when I download the .exe file, Internet Explorer or Chrome asks me "Do ...
0
votes
1answer
127 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 ...
2
votes
1answer
67 views

Making PowerShell assume the working directory of a called Batch file

I regularly work interactively with a batch script that I can't easily change. One of the features of this script is as a navigation aid - it understands my company/product's code layout conventions ...
0
votes
2answers
180 views

Can't quite get my batch file running invisibly

I found a lot of stuff online about creating invisible bat files. I came closest to wrapping my mind around this one: Run a completly hidden batch file However, in my application, I can't figure out ...
0
votes
1answer
56 views

Batch file to edit users path

I have a batch file that I got from another post in this forum which edits the user's path but it bombs if the path contains any Program Files (x86) entries that are common on windows 7 machines. Any ...
0
votes
2answers
88 views

Batch file rename script swapping substrings in filename?

I have a group of files named like title_december_word1_word2.png and want to iterate through the directory and swap word1 and word2 within each file. i.e. go from button_december_state_pressed.png ...
1
vote
2answers
87 views

Where are the folder icons generated with the folder properties kept in the Registry?

Right click on a folder and select properties. Select the "Customize"tab. At the bottom select "Change Icon" etc Works very nicely. My question is: Where is this information held in the registry?
1
vote
1answer
138 views

How to get the command that invoked a task with tasklist?

The Windows task manager has a column labeled Command Line that shows the command that started the given task, with all the switches and parameters, for example: test.exe -V -A 127.0.0.1 -P 6062 ...
0
votes
2answers
201 views

How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2

This is in relation to this question . Unfortunately, PowerShell scripts are disabled on the system I am working on. I can't even use a simple (Get-Content). I did figure out how to do change ...
0
votes
1answer
61 views

Batch convert mono WAV to stereo verbatim

I have a bunch mono .wav files which I need to convert to stereo in order to run thru lame. Lame can't encode stereo mp3s from mono input so that's what I need to do. I don't need any modifications ...
0
votes
1answer
51 views

How can I spin up a drive with batch script?

How can I spin up a drive using batch script. I have a daily sync script between my PC and my file server. The drives on my file server spin down during periods of inactivity which is desired. ...
2
votes
3answers
165 views

How can I start a process and give it a different name in Task Manager via a batch script?

I have a batch file that looks like this: cd C:\Some\Folder wperl SomePerlScript.pl %* exit 0 It's basically designed to work around the fact that perl.exe leaves an annoying command prompt window ...
1
vote
1answer
29 views

Delete files with specific string in them

I need to delete files which have the string ST*823 in them. This does not seem to work: for /f "eol=: delims=" %%F in ('findstr /m ST*823 *.txt') do del "%%F" I don't think it likes the * since ...
1
vote
2answers
129 views

how to access variables that are set in a different windows batch file?

i have a windows batch file - called fileA.bat, which contains a variable set in it. Sample code of fileA.bat: set fileA_username=michael now i have another batch file, called fileB.bat, which ...
1
vote
0answers
665 views

Launch Minecraft 1.7.2 From Batch File and change Username

Near the start of the year I made a series of little batch scripts allowing people to run minecraft off of their usbs and not leave anything on the computer (symlink from %appdata%/.minecraft to ...
0
votes
1answer
67 views

How to restart batch file itself?

How to restart batch itself automatically? If the filename of batch changed, start <fixedbatchfilename> must fail because though the filename changes, the command doesn't. Is there a ...
2
votes
1answer
147 views

Batch file commands to trigger Add/Remove “Repair” action?

I have an Outlook add-in which occasionally is forcibly deactivated by my IT department periodically. I also have a batch file I run after logging in which accounts for various other discrepancies ...
0
votes
2answers
114 views

How to rename multiple folders while keeping their files subdirectories

I want to rename multiple folders and keep all files and subdirectories in tact. Windows batch commands like xcopy and move can't handle every case*. I set up two columns with old paths and new ...
0
votes
0answers
135 views

Windows batch script to run a macro for Epsilon editor

I have some macros for Epsilon editor defined which we are using one by one on some files, but I want to run them all at once on some set of files. Sample macro: (define-macro "string" ...
2
votes
1answer
81 views

Unbalanced Parenthesis in a for loop in batch

@echo off FOR /l %%A in (0,1,30) do ( set /a results=1600 + !RANDOM! %% (1900 - 1600 + 1)echo %%A--!results! ) When I run this I keep getting error "Unbalanced parenthesis" in windows xp and when I ...
0
votes
1answer
58 views

%RANDOM% environment variable is giving a single number [duplicate]

I’m having trouble with the %RANDOM% environment variable in the following command: FOR /l %%A in (0,1,30) do set /a results=1600 + %RANDOM% %% (1900 - 1600 + 1) && echo %%A--!results! I ...
1
vote
2answers
126 views

Fast NT batch script for determining path lengths in a folder

I would like to know if anyone has devised an efficient way in NT batch of computing path lengths in a given folder. This is necessary to identify files and folders which won't successfully archive ...
0
votes
0answers
104 views

Open Chrome tab without giving Chrome focus

Very specific question: I have a Logitech keyboard with several programmable G keys. I use one of these to open a specific webpage when gaming. However, when I press the button when in the ...
1
vote
1answer
169 views

Resize image to a maximum size on command line

I have a very big collection of very big images, and I want to create a thumbnail gallery in which images are resized to a maximum-minimum-width (you will understand) of 180px. For example: If the ...
0
votes
0answers
24 views

Batch script for replacing the same file from one folder to another folder [duplicate]

I have two folders where in src folder contains the original files and the destination folder contains the modified files. I want to replace the original file with the modified file which will have ...
0
votes
1answer
123 views

forfiles.exe not working for c:\users\internet\downloads or documents

I am getting could not find c:\users\internet\downloads\new.txt when i run the script in cmd is it because there's a lock icon on the user account on windows7, the script works fine if i change ...
0
votes
0answers
142 views

whats a good way to format event log (wevtutil) results?

wevtutil qe Application /rd:true /c:10 /f:text this returns the following (partial): Event[7]: Log Name: Application Source: SceCli Date: 2013-11-14T04:13:03.000 Event ID: 1202 Task: N/A ...
0
votes
2answers
315 views

Using sqlplus as tnsping alternative

Is it possible to use sqlplus as an alternative for tnsping since tnsping wasn't installed with the oracle setup. I simply want to check via batch script, whether the definitions from the tnsnames.ora ...
1
vote
1answer
48 views

How to check variable with line break

I'm writing this script and I need it to check if some drives are connected, for that I'm using fsutil fsinfo drives and I'm saving the output in a var. Then, I check with an 'if' if the var is what I ...
0
votes
2answers
234 views

Batch filling multiple forms using data from Excel

I have an excel file which contains many rows of data, each row has columns like last name, first name, gender etc. I would like to batch fill these data into multiple forms of different types. ...
1
vote
1answer
116 views

Detecting computer name

How can I detect if I am on a certain host computer in a batch script? Ex if I run the command hostname it gives me the current computers hostname. Is there a way that I can save that to a variable or ...
0
votes
1answer
51 views

organizing images by resolution with batch files [closed]

Doing some digging I'm trying to figure out a command line solution for organizing very large archives of images based on their resolution into folders, 1920x1080, 1600x1200, 1600x900, etc. I've ...
0
votes
2answers
324 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
181 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 ...
0
votes
1answer
85 views

Batch file to find specific services that are not running

I have a set of services that I need to check to see if they are running or not. Some have set names, i.e. (ServiceX, ServiceY) The rest all start with a prefix. so far I have sc query | find ...
1
vote
2answers
1k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
2
votes
3answers
993 views

What does the percent sign (% and %%) in a batch file argument mean?

I think I'm missing something because I can't seem to find what this means. Example: for /D %%A in (*) do "\7za.exe" u -t7z -m9=LZMA2 "%%A.7z" "%%A" That line was supposed to use a command line ...
0
votes
2answers
74 views

.bat file overriding answer

When I made this batch file, when typing y and n for the first time it works fine, but as soon as I choose n, every single time I try inputting something, it opens up the 7000 songs wpl list then ...