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. Please use the tag [batch-file] for that.

learn more… | top users | synonyms

0
votes
2answers
310 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
10k 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
244 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
339 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
985 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
2k 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
2answers
373 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
148 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
2k 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
286 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
122 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
399 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
3k 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 ...
3
votes
2answers
52 views

How to divide an audio file using a list of times?

I've found quite a few programs to divide audio files, but none allow for batch splitting an audio file using arguments. I have several 5 hour and longer audio files (mostly MP3, but I could just as ...
1
vote
4answers
4k views

Linux: Run command on a batch of files, with matching output files

A simple task: given a directory of files and a command that takes one file as input and produces one file as output, I want to process all the files in a directory at once and output them with ...
0
votes
1answer
64 views

How can I batch insert a certain .txt file into every subfolder?

I'm trying to figure out how to insert a licence.txt file into every subfolder, any ideas how to do this in windows command line?
0
votes
0answers
99 views

Using Task Scheduler to Run a Task possibly using event id.. i guess

I have created a task which runs on daily basis at startup, and set the computer BIOS to automatically start at 9:00 AM everyday. Also, set the powerloss - last state (this only works when the PC is ...
1
vote
3answers
10k views

Kill processes with batch file?

Whenever I start my computer up, there are numerous programs running in the background that I usually don't need , which take up a decent amount of memory. Is there a way to kill processes in a ...
0
votes
1answer
203 views

Converting Windows batch to Linux script (Batch create symbolic links by first character)

As a noob to Linux and scripting I'm unsure as to how to convert this into a linux script or even where to start. Essentially I want to create a script that creates alphabetized folders A-Z, symlink ...
3
votes
2answers
2k views

How can I start/stop a Windows Service through a Linux bash script?

I want to create a script that will be kicked off through an SSH server to start/stop a Windows service. The SSH user is part of the Administrator group. However, when I execute the script, I get an ...
-1
votes
1answer
546 views

Batch or VBscirpt to copy only folder structure(Not Files) from one server to another server by giving folder structure as an separate input file

Example: Source: Server 1: C:\Folder1\Test2 C:\Folder2\Test3 C:\Folder3\Test1 Destination: Server 2: (Same structure above should be copied here with permissions) Note: In script, have to call the ...
1
vote
1answer
684 views

BATCH SET unable to use divide operator

I am unable to divide using the divide operator provided in the SET command. SET /A 216/18 SET /A div=216/18 ECHO %div% Though this should work and it does in the command prompt window ...
2
votes
2answers
858 views

Finding a free port with batch

How can I find a free port with a batch file? I tried to run a loop and using the netstat -o -n -a it will increment a variable until the port is not found in the netstat list But I'm also not sure ...
2
votes
1answer
98 views

Log ping and date isnt working [closed]

:START echo %date% %time% && ping -n 1 192.168.1.1 >> pingReport.txt 2>&1 echo %date% %time% && ping -n 1 192.168.1.2 >> pingReport.txt 2>&1 echo %date% ...
3
votes
1answer
4k views

Creating Task With a Batch File - run task as soon as possible if missed

When creating a task with a batch file or command line, how do I specify the following option? "Run task as soon as possible after a scheduled start is missed " I know that this option exists via ...
1
vote
2answers
13k views

using FORFILES in batch to delete tmp and bak files older than a week

I am having issues making this syntax work correctly. What I would like to do is remove all tmp and bak files from the specified directory and all subdirectories if the modified date is older than 7 ...
0
votes
1answer
153 views

windows net user command to work with network service

This might be a trivial question but I was wondering if it was possible to use the net user command in windows to give back useful information on the "NT Authority\Network Service" user. I have tried ...
1
vote
2answers
5k views

How to create a desktop shortcut from a batch file

I know there are many posts on this issue but there is a minor twist to what I need to do. I can figure out how to create a shortcut with an argument like this: "C:\Program Files\My App\App.exe" /s ...
1
vote
2answers
798 views

Creating a drag and drop batch file to split an MP3 using ffmpeg

I've got a folder full of FFMPEG batch files that I've written to do various conversion tasks. These allow me to drag and drop a bunch of files and do a conversion - for example, decompressing MP3 to ...
1
vote
2answers
60 views

Create folder from specific multiple files, and then move specific multiple files into it

I have some files 07-01.jpg 07-02.jpg until 07-48.jpg 37-01.jpg 37-02.jpg 37-03.jpg until37-48.jpg I want to create folder 07, 08.... ,37 and then move multiple files 07-01.jpg, 07-02.jpg, ...
1
vote
1answer
356 views

How to “reuse” a regex find and replace in Vim

I have a plain text file with entries as firstAuthorLastName_titleFirstWord_YYYY that I change to firstAuthorLastNameYYYYtitleFirstWord with the following s// command in Vim.^[1] ...
6
votes
2answers
13k views

setting ERRORLEVEL to 0

What I have is a batch file that is a wrapper around an installer. This batch file checks the error level returned by the installer and prints accordingly. I noticed that if I execute set ...
1
vote
1answer
1k views

Need to script the installation of some MSIs and a few registry edits

I'm periodically required to update a whole bunch of browser plugins and other programs. I figured I might as well automate the process with a batch script. I found the MSI's for Reader, Java, Flash, ...
2
votes
1answer
2k views

ssh and execute interactive command

I currently have a process where i login to a machine, need to ssh to another machine and then run a command for an interactive job (on a queue-ing system). Is there a way to do this all in one shot? ...
0
votes
3answers
2k views

Batch repacking zip archives into 7z

I have many zip archive files that I would like to re-pack into 7z archive format, as that would save me a lot of space. How do I batch-repack those files on a Windows 7 computer? I tried doing this ...
1
vote
1answer
919 views

Windows XP, Can run .jar from cmd prompt, but batch file errors on “Cannot access jar file”

I am trying to create a simple batch file to start my java application from. It seems that it will not let me access the .jar file from a batch file. Is there a special syntax for file permissions I ...
1
vote
2answers
734 views

inkscape not working from command prompt

I was looking at the answer to the question (converting EPS to PDF) where they suggested using Inkscape to convert EPS to PDF images. I need the exact same thing. Using the GUI, it works like a charm. ...
0
votes
1answer
704 views

Using command prompt batch files to automatically rename duplicate files

I have batch file that generates one file *.txt that I use for review some details about installation process of a software, all good BUT how can I generate a new *.txt file on the same location with ...
2
votes
1answer
468 views

Custom Windows Configuration Batch File

I'd like to configure myself a one-click configuration windows script. However, I really don't know where to search for the lines to edit in the registry. I've found some things (such as UAC ...
1
vote
1answer
2k views

Batch conversion for images from command line on Windows

I have a script based on GIMP batch tutorial: (define (batch-colorize pattern hue saturation lightness) ...
2
votes
1answer
551 views

How do I copy a file to a destination with a wildcard?

For example, I would like to copy a shortcut.lnk to all of my individual users in windows xp. Therefore I want to do something like this: echo | f xcopy \\server\networkpath\shortcut.lnk ...
0
votes
1answer
4k views

Add text to beginning and end of each line using batch/cmd

What I'd like to achieve in the end is to generate a text file that lists all *.txt files in the current directory with the path appended to the beginning of the filenames, and some other string after ...
0
votes
2answers
71 views

Creating the same folder in all sub-directories of a folder

I am having difficulty getting the (simplified) batch-file below to work. It creates the a specific folder in all sub-directories of the specified directory. @echo off setlocal set "location=c:\test" ...
0
votes
1answer
524 views

How to batch extract from archive using tar to directories

I m trying to extract files contained within a directory in a tar.gz file. The extract I m using is tar zxvf foo.tar.gz. It extracts the files from the archive but removes them from the directory they ...
2
votes
3answers
7k views

Batch File Check Directory exists in x64 and/or x86

I need to be able to run this batch fine on both x86 and x64 machines to check if a program has been installed correctly . We have an app that installs in x86 in the standard program files directory, ...
3
votes
2answers
10k views

Batch file to run multiple programs with delays [closed]

Well i am new to Batch things, so need some help. I understand the lowest level, but with more complicated things have problems. Thing that i need now is File that launches other files, but with ...
0
votes
1answer
148 views

Alter txt file contents with BAT script

I need to take a text files contents and sort them into a column and re-save the file. The contents of the file look like this, all in one string.... ...
1
vote
1answer
412 views

Loop through text file for names in text then pull the file associated with that name (same name) from a folder

Okay, I know this sounds odd but here is what I am trying to do. Find the boot class file of a phone via shell command. The boot class file is a list of APKs the phone needs to perform certainn ...
1
vote
1answer
516 views

Make a bat file want for a program to be running then launch another one

I am currently trying to create a batch file that launches some programs for me. This could easily be done with the command "start" but the last program it runs only works if the first one's window is ...