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

Combine Batch/WMIC + ANSI/UNICODE Output formatting

In creating an auditing tool for my network, I'm finding that WMIC is outputting with spaces in between each character when accompanied by echoing regular text. For example, This: @echo off echo Foo ...
2
votes
3answers
35 views

How do I write a batch script to start a process and terminate it after letting it run for about 10 seconds?

How do I write a batch script to start a process and terminate it after letting it run for about 10 seconds? @echo off start abcd.exe [X] taskkill /im abcd.exe /f exit
2
votes
2answers
114 views

Batch File to start .exe when a specific number of files is in monitored folder

I am trying to write a batch file that will trigger an exe whenever there are exactly 4 jpg images in a folder. Afterwards the images should be deleted. I have got it to work it seems, but the file ...
-1
votes
2answers
117 views

Batch scripts disables Internet - getting 'System cannot find the drive specified' though I'm not asking it to

I have a batch script (that I'm running as a .cmd file through the right-click Send To menu) that first disables a user's Internet adapter, then securely unzips a .zip archive. For most people, it's ...
0
votes
1answer
32 views

Debugging a python program, called from another batch file

I have an annoying problem. I have a windows batch file, that does some initialization (mainly setting python paths) and then calls a python script. When the batch program is run, another window is ...
10
votes
2answers
794 views

Passing command-line arguments to a windows batch script

I need to create a windows batch script where I need to pass a few command-line arguments. These arguments may appear in in any order, but the script should pick them up properly based on the argument ...
0
votes
1answer
64 views

Batch File To Convert All Files In Directory To ATF

I am currently developing and Adobe Air mobile application and need to convert a large number of files from .png to .atf. I currently do this by running commands like the one below on every file. ...
1
vote
2answers
71 views

How to Use Batch File - Simple Application to Restart Audio Drivers [duplicate]

I want a batch file to open CMD and run "net stop audiosrv", then "net start audiosrv", then kill CMD. I am having problems with a bunch of things including It's not waiting It is opening a new CMD ...
1
vote
1answer
39 views

Multiple Find/Replace queries over multiple files: replace one by one

What I want is this (Software can run on Linux or Windows, both are available): Supply a list of files in which strings should be replaced (wildcards ideal, but not mandatory) Supply a list of ...
1
vote
4answers
68 views

How can I close a program with dos when the computation is finished?

I have a a problem with running a program in matlab by either the use of a batch file or just the dos() function. I can now open a program en run it with the input by using: start program.exe ...
0
votes
0answers
30 views

(oldie not working on Win 8.0 x64?) Command prompt (.vbs) only solution to zip files and folders (batch .bat .cmd)

I worked with Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files? zip.vbs: Set objArgs = WScript.Arguments ZipFile = objArgs(0) ' Create empty ZIP ...
0
votes
0answers
46 views

how can I remote shutdown after host pc shuts down?

I have windows 7 Pro and for the project I'm doing I need the remote PC to automatically shutdown when the host shutdown. So say if I power down computer a I would need computer b to shut down within ...
0
votes
3answers
73 views

Windows 7 script to change part of a file name

I have a collection of files whose names are in the form car-#######-NNNNNNN.xxx, where ####### is a series of numbers that need to be kept as part of the file name, and xxx is an extension denoting ...
2
votes
1answer
134 views

batch script to “scan for hardware” in Windows 8.1

There is this issue with Wifi on the Surface Pro 3 that can be easily fixed with a script that does the equivalent of running "Scan for hardware changes" in the Device Manager. This script will be ...
3
votes
1answer
132 views

Use ffmpeg To Batch Process M4A To M4A?

I've been using the code shown below to copy the AAC audio stream from 1 M4A container into a new M4A container. ffmpeg -i "C:/Example/01 Example Song.m4a" -acodec copy "C:/Example2/01 Example ...
3
votes
0answers
19 views

Terminal file find location [duplicate]

I am using a mac terminal (.command) file to launch a Python program. My question is, how can I find the location of the .command file when I am inside of the .command file. Thank you.
0
votes
1answer
33 views

If command, importing .reg not working

I am trying to use a if command to change language. But all I am getting is "Syntax error" I really can not find the real syntax. CMD file @echo off echo "1 =Brazilian Portugese" echo: set ...
0
votes
0answers
50 views

Scheduled task doesnt work Windows 8

I have this batch that makes a scheduled task calling to a powershell script and i cant make it run in windows 8. It works perfectly on windows 7 but when i use it in windows 8 it keep stuck. My ...
1
vote
1answer
50 views

windows batch file to submit a doc file for printing on the default printer

I have a list of word docs coming into a particular folder in my server. I need to submit them to the printer . I cannot maunually keep on printing as this is going to get tedious. I need a windows ...
1
vote
0answers
121 views

Creating an account creation script to create new users in Windows Server 2008

I need to be able to make an account creation script that will create a new user in the Domain Users group, set its password, roaming profile, and login script. The input will be first name, last ...
0
votes
2answers
39 views

Batch rename directories in OSX

I currently have a large set of directories containing photos. The directories are currently named in the format of yymmdd_text. I would like to rename them all to yyyy-mm-dd Text (notice capitalized ...
0
votes
0answers
66 views

Server 2012 - Scheduled Tasks - “You do not have permission to access this computer”

I am on host_server, trying to schedule a task on remote_server. Both servers are Windows Server 2012 R2 and belong to WORKGROUP Steps Open Task Scheduler Right-click Task Scheduler and select ...
-1
votes
1answer
95 views

I want execute in bacth via commandline REG IMPORT

When I try to execute this command: REG IMPORT myreg.reg I get access denied message, because I'm not administrator. However I don't want to open command line using run as administrator in visual ...
0
votes
2answers
99 views

Run other cmd in bat like from it's own path

I need to run bat(fix.bat) in cmd batch file (let's say sample.cmd on c:) The problem is that despite of using: start /WAIT cmd.exe /C D:\dev\sys\fix.bat fix.bat runs like from parent command ...
0
votes
0answers
21 views

Want to write batch script on the basis of system date and exit code

This is MY first question in this forum, Hope any one of you can fix the issue.. I have one log file containing the pattern as below "abcd.job" (abcd.bat) Started 27/8/2014 5:00:00 AM ...
0
votes
1answer
128 views

Batch file to read a file and create a JSON?

I have a text file with some dozens of entries in the following format: code: SETX id: 1 msg: Message for setx code: SETY id: 2 msg: Message for sety msg_ja: Japanese message for sety As you can ...
-1
votes
1answer
1k views

'sqlcmd' is not recognized as an internal or external command

(I know this isn't really meant for here, but I can't ask questios on Stack Exchange) I'm creating a batch file and I get this error message: 'sqlcmd' is not recognized as an internal or external ...
0
votes
4answers
75 views

dir folders at a certain folder depth in a batch file

I want, with a batch file, to be able to search and display the files in a bunch of folders called "error" located in a bunch of different places. The error folder is always at the same folder depth ...
0
votes
1answer
89 views

.bat file to rename files (not bulk)

I take pictures of airplanes. When i put them on the computer they are named DCS_5678 (or anotrher number :p ) The way i catalogue my pictures is by renaming them as followed: ...
0
votes
1answer
70 views

Parent process details from the batch script - find out what called the batch script

We have a batch file which is calling php scipts. Php script load some data files to our system. I cannot understand what is starting that batch file in the middle of the night. I cannot find any ...
7
votes
1answer
84 views

How do I batch-downsize images on linux, while keeping small images small?

I have a whole lot of photos and it's time to clean up the mess and free some disk space. I know mogrify is great to batch-resize things down. The problem is, in some directories I have small images ...
0
votes
0answers
28 views

Windows 7 mountvol and task scheduler

In Windows 7, I have a Task-Scheduler job which run Backup4All, to do a backup of my data. It has provision to run a "pre"-backup batch file, and a "post"-backup batch file, which I have taken ...
0
votes
1answer
146 views

Windows Batch - Move files to folder parent & Remove empty subfolders

I found several such questions and tried to adapt the answers to my needs but no luck so far. Im trying to create two context menu entries in Windows 7 that would: Move all files from ...
0
votes
0answers
329 views

SOLVED: runas /savecred error 1311 no logon server

Computer: Windows 8.1 Pro on company domain I have a program that needs to be run occasionally for testing purposes, and is installed and uninstalled regularly. I am not a domain administrator, and ...
0
votes
1answer
35 views

Assigning a Windows environment variable to a batch variable?

I can't seem to assign an environment variable to another one inside a batch script. For example, this will work: set varA=C:\this\is\a\directory and I can happily use find /I "MyString" %varA% ...
0
votes
0answers
41 views

Prefix commands in batch

I am using a batch file to run Grunt with some console customization. I was wondering if there is a way to add grunt and a space to the commands I enter into the console. Here is my batch file: CD ...
0
votes
0answers
25 views

In windows, filter and delete image based on dimension(or any search filters for that matter)

In windows explorer, I can filter a folder based on the dimension criteria, say: width:<800 height:<600 (so that I filter small images) height:>2000 (so that I filter portraits) and then delete ...
0
votes
0answers
301 views

What's the equivalent of Wevtutil in XP or 2003?

I have a batch file for saving event logs to our shared drive. I want to do this for XP and Server 2003 without very much effort. What could I use since Wevtutil is only on Vista and up? rem Script ...
0
votes
1answer
117 views

How to start a cmd window and issue tail request in a bat file?

I can open a cmd window and start a tail by entering something like this: tail -f C:\Oracle\WebCenter\Sites\11gR1\Sites\11.1.1.6.1\logs\sites.log This is probably a stupid question, but how do I do ...
-2
votes
1answer
41 views

How to print specific page of each of several PDFs in a folder

I have to print the second page of several PDFs. They are all on the same networked hard drive, but it's bogging down everything so badly. I was hoping there would be a way to accomplish this, perhaps ...
0
votes
1answer
250 views

Batch Script to Trim lines in text to first 30 or 50 characters only

I am now new to scripts but i find it really difficult understanding "for" command (especially with that tokens and delimiters etc) . Saying so, i think that for command can be used to do what i am ...
0
votes
1answer
446 views

Script to Find Certain words and delete those lines in a file

EDITED THE QUESTION as i am open to different type of solutions unlike just batch previously I am on Windows & some suggested SED etc. So i am OK with these 3rd party standalone exe's using ...
0
votes
1answer
81 views

Notepad++ : Do batch text replace

I'm trying to create a dictionary file from several webpages I found online. The dictionary indexes headwords so that they can be easily found in search mode. The information in the webpage is divided ...
0
votes
1answer
46 views

Bulk resize / compress TIFF files [closed]

We support and host an EMR for several medical practices; these practices scan images into this software stored as flat files (TIFF mostly). Due to poor user training (people scanning text pages as ...
0
votes
1answer
70 views

How to search and extract part of string in batch script?

I am pretty new to windows batch scripting and am having trouble to search and extract a portion of a string from a text file and display it out. Some samples data are shown below. The keyword for ...
0
votes
0answers
32 views

NDIS driver batch installation on Windows 64bits

I want to update a BATCH script to install an NDIS filter driver on Windows Seven (32/64 bits) and above, the script use snetcfg on Windows XP 32bits, and I would like to know if snetcfg is still an ...
0
votes
1answer
95 views

Passing optional parameters in a batch script

I'm trying to write my first batch script and trying to understand how to pass arguments. It's a very simple command which runs fine in cmd. Command: C:\Program Files\Foo> myexe -sd tempVar ...
0
votes
0answers
69 views

Batch file needed to query a specific location

I am not a coder and would appreciate any assistance. I need a batch file which will query a NAS location and produce an output of the upper level directories (and maybe the second level down). The ...
1
vote
1answer
506 views

running batch file within powershell

I'm running a batch file within PowerShell. It calls up another program to do a bunch of maps which it outputs to a subfolder called "GRD" I then want to rename the files in the GRD folder by adding ...
0
votes
1answer
30 views

move files from a list of files

So, I have a list of files in a text file. I believe it's about 100,000 files. The files in said list are spread across many directories, have different sizes, filenames, extensions, ages, etc. I am ...