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
2answers
222 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 ...
2
votes
5answers
698 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
94 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
54 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 ...
3
votes
2answers
725 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
19 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?
0
votes
0answers
23 views

How do I run Kleopatra in batch on a vmware slice

I am running some code to decrypt a file using Kleopatra. The server is a VMWare slice, and I setup the Kleopatra under my own ID (I am in the admin group on that server). My batch jobs work ...
0
votes
1answer
89 views

How can I create a batch job (.bat) that zip a folder?

From 7zip I've downloaded their command line tool 7za.exe, and I have to following script: echo off cls set zip ="C:\7za.exe" set filename="%date%.backup.zip" set pathtobackup="C:\MyDocs" %zip% ...
0
votes
2answers
347 views

Batch File Copy and Move without overwriting

I'm trying to create a batch file (to run in the background) that will copy a single file without overwriting any file in the destination with the same name, and then move the file, again not ...
-2
votes
1answer
104 views

Batch file to copy a file at random to another folder

I need a batch file: Given folder A containing .txt files; e.g., C:\A\a.txt C:\A\b.txt C:\A\c.txt C:\A\d.txt and folder B (which is empty), I need the batch script to copy one randomly chosen file ...
1
vote
1answer
326 views

Launch multiple programs in background on windows 8.1

I want to start (launch) three programs in windows and all of them in Background i.e. No windows. I found two ways (both using vb script to hide a bat) Set WshShell = ...
2
votes
3answers
341 views

Use array to create string in DOS

This is a slightly different question from Populating Array in DOS Batch Script I'm trying to compile a JavaScript application using Google Closure Compiler. The list of JavaScript files has grown to ...
1
vote
0answers
46 views

Trying to create a lock system

I've been trying to create a locking system just to help deepen my understanding of batch files. To clear things up, this isn't supposed to be very complex or even practical. This is just more of ...
1
vote
2answers
1k views

How to create multiple folders and name them by reading lines from text file?

I have a plain text file named Export.txt. It contains a list of geographical places, preceeded by a 3 digit number with leading zeros. Example --START OF FILE-- 001 Aberdeen 002 Bellevue 003 Camas ...
1
vote
2answers
74 views

How do you make “enter” an invalid option in batch script?

I want "enter" to be invalid and to restate the acceptable responses. echo. Do you want to root your Nexus 5? echo. ----------------------------------------- echo. ...
0
votes
0answers
43 views

How to Move multiple sub-folders through out a tree structure with the same name to one folder [on hold]

I'm looking for a batch file to move multiple sub-folders that have the same name throughout a tree structure to a new folder that will contain a single folder with all the files. i.e. Folder 1 - ...
0
votes
1answer
50 views

How to define access to just the System event log on Windows 2008 Server

I want to restrict administrator user access to the Security event log, is there a way to do it? I was following this article, but so far no luck.
-1
votes
1answer
132 views

Batch Launcher With Variables

This batch launcher was created so that batch files won't launch a command prompt window... Now that i'm adding more variables to it, it's not working... I'm launching the VBScript like so; wscript ...
0
votes
2answers
110 views

How to exit a batch script when a command is not found

I want the terminal to close itself if adb is not recognized. ADB is a program this script will utilize to detect device. Here is a bit of my script echo My name is RomBreaker echo. echo And I'm ...
2
votes
1answer
2k views

How to compare 2 strings in batch and determine if variable is alphabets

I have this code for /l %%a in (0, 1, 25) do ( if /i !TextAlphabet!==!Alphabet[%%a]! ( set AlphabetNumber=%%a ) ) !Alphabet[]! is an array containing alphabets. I tried echoing !TextAlphabet! and ...
-2
votes
1answer
53 views

Batch file test for path + file name with extension

Batch file in Windows 7. I want to know how to test for a path + file name with an extension, if it exists or not. I have tried if exists "myfile.ext" It seems not to see the file. Your ...
0
votes
3answers
154 views

Get administrative right in windows command line [duplicate]

I am not trying to do cheeky things, but my need is just to have two scripts for adding or removing IP routes using the following command in batch scripts: Add route: @echo off route add -p ...
0
votes
1answer
35 views

How can I simulate Make's targets within a Windows batch file?

In working towards resolving http://tex.stackexchange.com/a/160685/17423, I'm looking to create a batch-file version of this makefile. Is there a clear/conventional way to simulate the 'target' ...
0
votes
4answers
65 views

Part filename to folder

I've been trying to figure out how to make a dos command that can "see" part of a file name, then create a folder and sort every file which has that part of a filename in it. Every filename has the ...
-1
votes
1answer
36 views

Pass a variable in skip of for loop [closed]

Can we pass a variable in for loop as in below example: @ECHO off SETLOCAL ENABLEDELAYEDEXPANSION set /A counter=6 echo !counter! for /f "skip=!counter! tokens=1-18 delims=]" %%A in ...
0
votes
2answers
37 views

get part of the path in recursive operation

I have a directory tree like this c:\work\src\A\D1\foo.txt c:\work\src\A\D2\foo.txt c:\work\src\B\foo.txt I want to run the stream editor (sed) for each foo.txt and replace some text with sed. The ...
1
vote
3answers
1k views

How to control power to USB ports using batch

How can I toggle the power to a USB port on/off using batch or the command line? I am using Windows 8 to do this. Does anyone know what I could do? I have 4 USB ports.
0
votes
0answers
18 views

Concatenating with line breaks (Batch, Windows 7) [duplicate]

I have a bunch of text files which I already know how to concatenate using copy (batch, windows): copy /a *.txt concat.txt But there are no line breaks between each text field in the resulting file. ...
0
votes
1answer
105 views

Understanding a for loop in a batch file to rename files by replacing strings

@echo off Setlocal enabledelayedexpansion Set "Pattern=rename" Set "Replace=reuse" For %%a in (*.jpg) Do ( Set "File=%%~a" Ren "%%a" "!File:%Pattern%=%Replace%!" ) This renames .jpgs having ...
0
votes
1answer
118 views

How to run a batch script which is on a server, but it should be run on a PC remotely

There are many batch scripts on one of our servers that are shared to everyone. These are scripts like Robocopying, portable apps, etc. I am in tech support, and when someone asks me (for example) "I ...
-2
votes
1answer
32 views

How can I type certain days (such as Monday, Wednesday) in an easy way for the next 5 months without typing them one by one?

I am trying to input in a libreoffice calc file only Mondays and Wednesdays for the next 5 months, but I dont wanna do it typing the dates one by one. So..I thought I would type 4 dates like this: ...
0
votes
2answers
67 views

Duplicate Deletion Script does nothing

An associate of mine wrote a script for me that should theoretically delete files that have the same name, regardless of their file type. Specifically, it checks mp3, m4a, wma, wav files. However, ...
1
vote
2answers
142 views

How can I start a VirtualBox VM and then run a batch file inside the VM

I have a lengthy build operation which calls several batch files in succession. Most of these batch files start 32-bit compilers, etc, but one of them involves running a legacy MS-DOS 16-bit app ...
0
votes
2answers
273 views

Batch Printing TIFF Files in Windows

I am trying to batch print .TIFF files efficiently. I have found that I can drag files from windows into the print job queue window and it will print them right from there. With PDF's of varying ...
1
vote
1answer
68 views

Commands run in a batch file only when writing cmd /c before

I am running the following command rabbitmq-server.bat" -detached This command runs a sewrver in the background. When I run it from a batch files - the flow stops and later commands in the ...
2
votes
1answer
337 views

Win7 Task Scheduler Won't Run Copy Commands

I'm trying to run a patch file every morning at 4am. For whatever reason, the lines in the batch file that use robocopy.exe are skipped. I've also tried xcopy and cp(from UnxUtils). The batch file ...
0
votes
0answers
79 views

Export/Convert PNG to HTML table using GIMP batch mode in Windows 7

I need to convert PNG images to HTML tables in GIMP batch mode from the Windows command line and have been unsuccessful using google to find an example I can reuse. I can open the PNG in GIMP and ...
0
votes
1answer
2k views

Windows Batch file to copy latest files to a new folder

I want to copy the latest file from a Folder and its subfolders to a new location. The following code works well, BUT I do not want to filter by Date AND Time (/O:D), but DATE only, so that all ...
0
votes
1answer
61 views

How to associate a file extension to be opened with a batch script?

I want to get rid of OSPPSVC (Office Software Protection Platform Service). Then, I have replaced the links to open Office programs with a link to launcher.bat: @echo off title Launching Office... ...
0
votes
1answer
60 views

Batch change filetype associations on OS X

I just installed Sublime Text 3 beta and would like to re-associate all the filetypes I have linked to ST 2 with ST 3. Is there any way to perform this as a batch operation? For example: $ ...
0
votes
1answer
95 views

Mac OSX Text to Speech Batch

I have 300 English text files that I want to make into mp3 files to listen to as and when. Is there a free program or automator script that I could use so that my Mac will batch text to speech the ...
1
vote
2answers
110 views

Batch file for starting powershell in a specific directory

I am learning to program in python through the book "Learn python the hard way". Therefore I use powershell to run my programs. Since I had to manually change the directory every-time I started ...
0
votes
1answer
65 views

I need to batch convert Word (.doc) to Word Perfect documents (.wpd)

Everything I have found so far is going the other direction and few specifics. I need to convert approximately a hundred Word documents into WordPerfect documents. It has been more than a decade ...
1
vote
1answer
140 views

How do I create a .bat to logoff a specific user from your pc?

Running remote desktops that are acting as specific users on Win7x64. The main username I'm using is Server. And the rest are as follows hh1 hh2 hh3 etc. Basically these handheld remote desktop ...
2
votes
6answers
1k views

How to perform wildcard string comparison in batch file

My batch file writes a list of files on screen where it contains the .cs extension for /F "usebackq delims=" %%A in (`cleartool ls -rec ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed" ...
2
votes
2answers
411 views

Run a batch file when I lock/unlock my computer

Is there a way I can run a batch file upon locking my computer, and then run another batch file when I unlock it? (Windows 8.1) Thank you!
0
votes
0answers
97 views

script batch file - icacls - multiple directories

Following a script to created in a previous thread, I am trying to use the below code to apply permissions to the 4th subfolder called specific folder, how can i change this code to apply the same. it ...
0
votes
1answer
89 views

How can I run a batch file only one time per comptuer?

I have a batch file that I want to push out to make some changes, but the changes take a while and only need to be done one time, how can I manage this?
-1
votes
1answer
451 views

“CACLS” is not recognized as an internal or external command, operable program or batch file

I have been using CACLS batch file many times and today it is not recognized. CACLS.EXE exist in C:\Windows\System32 and I have tried writing at command prompt: CACLS * /E /T /C /G Administrators:F ...
0
votes
0answers
38 views

How to start an application in a given directory, using other as its working dir?

For a system we are deploying for our customer we need to run the setup executable from %temp% and have it use for the installation, files in another directory. This cannot be solved at the ...