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
vote
1answer
959 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.
0
votes
0answers
46 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
418 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
421 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
550 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
166 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
327 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 ...
2
votes
2answers
158 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?
2
votes
1answer
3k 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 ...
1
vote
2answers
2k 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
166 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
112 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
1k 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
110 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
975 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
1answer
895 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
201 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 ...
3
votes
1answer
423 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
1answer
323 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 ...
2
votes
1answer
242 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
144 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
486 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 ...
1
vote
1answer
734 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
25 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
513 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
2answers
1k 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
49 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
1k 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
1k 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
112 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
2k 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
894 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
388 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 ...
-2
votes
1answer
10k views

Delete files older than 7 days in folder and its subfolder [duplicate]

I need to have a windows batch file which deletes all files which are older than 7 days in a folder and its sub folders without deleting any folders.
6
votes
3answers
7k 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
113 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 ...
0
votes
2answers
218 views

Batch file to create many files with special characters

Essential info: I have a file "DB_OUTPUT.TXT" with 304 lines that I need to turn into 304 files (one per line). Each line contains many special characters and may be up to tens of thousands of ...
0
votes
2answers
5k views

Batch IF .exe is not running

I am trying to create a batch that IF program.exe is not running in process, it will run code below. In vb.net this is easy, but I do not want to create a program. I am guessing a VBS script would ...
0
votes
1answer
222 views

How to batch rename files using bash

I know there are lots of such questions, but I couldn't find one (or a combination of several), which describes the things I want to do. I think I need to use regular expressions, but I am not very ...
0
votes
0answers
277 views

Windows Batch Script Generates runtime error R6016 - not enough space for thread data

I am running a Batch Script that is 1 FOR /F %%i loop and it is currently running over 5k files totaling 62mb. I am using Windows 7. The error doesn't generate everytime I run it. It seems to only ...
1
vote
1answer
729 views

Apply jpegtran.exe to directory

I am trying to optimize a directory of images with jpegtran.exe but I can't figure out how to make it work. Does anyone have experience with this? I found this article about scripting jpegtran but ...
1
vote
2answers
1k views

Batch script to remove # from a file name (only in a specific directory)

I'm looking for a script to remove the # character out of any file names in a specific directory (PDF documents). I've been looking at some similar examples, but it's all a bit confusing!
0
votes
1answer
228 views

Save all WLAN profile names stored on my machine, into a textfile

when I'm using the netsh wlan command, a similarly output is shown. C:\Windows\system32>netsh wlan show profiles Profiles on interface Wireless Network Connection: Group policy profiles (read ...
0
votes
0answers
135 views

Batch file to read a text file with folder and file names and write to another file the ones that do not exist

I have a file of approx 30,000 folder/file names that I need to confirm if each one exists. If a file does not exist, I want to write the full path and file name to an "error.txt" file. Can anyone ...
0
votes
1answer
586 views

How can I print a batch of files with custom printer settings?

I have a collection of A3-size (tabloid size) PDF drawings which I would like to print as a batch. The particular printer I am using doesn't automatically check the paper size of the document - it ...
0
votes
1answer
212 views

Start jade via batch script as service on windows server 2012 amazon ec2 instance

I would like to start the Jade agent platform with a batch script on an windows server ec2 instance as a service. The reason for this is, that I want to start jade automatically at system startup. ...
0
votes
2answers
100 views

Batch-Script for copying and overwritting existing files

So I've got a file called modified.txt, however the same file is in a bazillion folders and subfolders. I want to copy the modified.txt to all these bazillion folders and subfolders and overwritte ...
0
votes
1answer
236 views

Build a user's profile directory on creation in batch

I have a batch script that I use when I set up new Windows 7 PCs that creates a user based on a variable, creates a folder on their desktop, then shares it: @echo off SET /p unitnumber="Enter ...
0
votes
1answer
2k views

Windows CMD Batch, START, output redirection, but appending

i currently have issues with output redirection of cmd. I use "start" command to call another wayne.bat and want its output to be redirected. This works, but everytime i start my .bat (what happens ...
0
votes
1answer
3k views

Move all files from multiple level sub folders to 2nd level subfolder

I'm looking for windows command or batch script to help me, i Spent 3h reading/ trying to find a solution i know its out there but my lack of scripting/programming isn't helping, hoping some can help ...