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

3
votes
1answer
18 views

Unable to find local files when using FTP

I'm trying to create a plain FTP file and a batch file for my colleagues to use to upload som zipped files to a database. The problem I run into is, when connected to the server, I cannot reach my ...
3
votes
1answer
488 views

Downloading all files in a directory with ftp command

I am trying to download all of the files in a directory using the FTP command on Windows (Windows Server 2012 R2). Here is what I am running from the ftp command: open myurl.com myusername mypassword ...
3
votes
1answer
154 views

Batch files to combine multiple files (that have parentheses in their names)

The background: I'm using IFTTT to pull DC Metro bulletins from their RSS feed into a text file for my BBS. The biggest problem is that IFTTT cannot overwrite or append to files, so I get multiple ...
3
votes
1answer
1k 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 ...
2
votes
1answer
46 views

Creating a CMD Context menu to copy filepath

I created a context menu in the registry HKEY_CLASSES_ROOT > * > shell > copy > commmand > cmd /c dir "%1" /b /a:-d /o:n | clip What this does is copies the file name when I right click on a file, ...
2
votes
1answer
487 views

Find and replace hyperlinks in a PDF

I want to automate the process of finding and replacing hrefs (not the anchor text) in 100's of PDF files in a Windows 8.1 OS. I am happy to convert file formats so long as they can be re-compiled ...
2
votes
1answer
46 views

Copy list of files to new names

Windows 7 Pro I want to copy a series of files, all named "cover" from different directories to a single directory, and give them all new names. I need help with either of the below options: Option ...
2
votes
1answer
641 views

ffmpeg | batch convert | make same filename

How would I use ffmpeg to create a batch convert file for sample rate conversion, such as: $ ffmpeg -i *.wav -ar 22050 *.wav Take note, that i'm only doing a sample rate conversion, but in the end ...
2
votes
1answer
175 views

How to crop images in batch and then re-crop the same way

I am getting automatically generated screenshots of our application, some of which need cropping, since they may only relate to a pop up window or some small portion of the screen. Is there some way ...
0
votes
0answers
56 views

batch files compare before and after before deleting

I use two commands in this batch file for /r %%n in (*.wav) do xma2encode "%%n" for /r %%n in (*.wav) do del "%%n" Sometimes xma2encode doesn't create the .xma file like it is supposed to. If it ...
0
votes
0answers
59 views

Batch file - List Files by extension

I am looking to get a total number of files by extension in a folder that contains many subfolders. Example Output: .doc: 6 files .xls: 10 files etc I want to either output the results into a ...
0
votes
0answers
246 views

Automating SMTP Configuration

The following is an excerpt from a series of instructions I am following as a list of company procedures they would like me to automate. Is the following achievable through command line/batch, and if ...
0
votes
0answers
313 views

How to automate software registration via batch or script

We use a program called vspace created by ncomputing. This allows for example 4 stations on a single host machine. So, each time this is installed we have to fill out the registration form which pops ...
0
votes
0answers
667 views

Managing windows updates via Batch file

I have an instance of windows server 2012 and I am trying to get an idea of how to accomplish the following requirements via a batch file. Turn Windows Update to manual Change Import Updates to the ...
0
votes
0answers
231 views

How to change the Start In property via CMD for an .lnk

Context: I have folders with presentations being created dynamically except currently an instance of our ppt&macro is being dropped in each folder with the presentation. The presentation will only ...
0
votes
0answers
1k views

Windows Login Script ignore UAC

I have a GPO that will launch a Startup Script for a .exe(Install Shield) silent unattended setup. However the user is currently being prompted to allow program due to UAC. I want a true unattended ...
0
votes
0answers
29 views

I need a dynamic script for changing Host IPs depending on computer name that I can shoot over the network

Does anyone know how to make a Batch/Script, that I can modify, for looking up the host computer name and build the IP and gateway off of it. we have a simple setup of computer name refers to location,...
0
votes
0answers
358 views

How do i add command to my batch file to go get a screen shot of a webpage and return and save to my desktop?

I'm just learning about batch files and such, and I have been googling round and round trying to find how to create a batch file with a command that will go to my youtube page link and take a ...
0
votes
0answers
173 views

Batch: backup, then delete old backup

I have a batch script that runs hourly. It connects to an FTP server, downloads a backup file, then deletes the oldest backup (backups are kept for 4hours by default). This is supposed to insulate our ...
0
votes
0answers
1k views

Batch file - Copying folders with percentage

I'm currently trying to create a batch file, which actually copy a folder from a server to a clients machine. And I'm playing around with batch file, using xcopy, and it gives me the percentage of ...
0
votes
0answers
466 views

Batch script to get data in an infinite loop and post to a URL

Here is my working script for Unix. It gets data from command line and posts this data to a URL: #!/bin/bash while read line do echo `curl -XGET "http://domain:8080/test/$line"` done I tried ...
0
votes
0answers
310 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
0answers
49 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 ...
0
votes
0answers
376 views

Windows 8.1 bizarre audio issues

I have an Asus K52JT laptop running Windows 8.1 since three months ago. Audio speakers have worked fine since this week. At startup it is working, but after a while (15-60 minutes) it eventually stops ...
0
votes
0answers
168 views

how do you monitor the progress of a command line program?

We have some custom command line programs at our Windows shop. These commands are scheduled to run (from within bat files) at regular intervals using the Task Scheduler. Our tasks pull data from ...
0
votes
0answers
205 views

how to close running batch file for few hours daily

We have a batch file which runs continuously in our windows 2003 server because a Java application is depending upon that. However, now I wish to close it automatically for half an hour every day at ...
0
votes
0answers
40 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 ...
0
votes
0answers
55 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
0answers
360 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 ...
0
votes
0answers
154 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
0answers
111 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 ...
0
votes
0answers
126 views

cmd/batch setx not to evaluate any paths

When I set a new path like so: setx -m path "%%SOME_HOME%%;%PATH%" The %PATH% part will expand any existing % into the actual path. I want it to set: %SOME_HOME%;%GIT_HOME%;C:\program.exe NOT ...
0
votes
0answers
250 views

How do I diagnose errors in a batch FTP operation?

I need to transfer two text files from my local PC to a directory on my server. I use a command sequence stored in FtpCommand.cmd to perform the commands in ftp, using the following command. ftp -i -...
0
votes
0answers
2k views

.bat runs from command line but not when scheduled

I've got a 1-line batch file that runs a pantaho etl job. It works fine when I run it from command line or gui, but the process doesn't even start when it's scheduled. I have the following settings: ...
0
votes
0answers
354 views

VirtualBox and group policy in Windows 2008

I have some batch files that start and save virtual machines on a Windows Server 2008 box. I am using gpedit.msc to fire the bats... I have added lines to write to a logs. There is a line written, ...
0
votes
0answers
405 views

Windows attrib command changes file timestamp

I have some batch file running that does the following on a directory tree with several thousand files: change file attributes, turn OFF readonly do some stuff, add new files. change file ...
0
votes
0answers
1k views

Boot from USB and run batch file

I'm trying to boot from USB and run a batch file that will mount the computer's main hard drive and will copy a file from the root directory into a specified directory on the computer's hard drive. I ...
0
votes
0answers
486 views

Shared folder as network drive, some files cannot be written

I have a folder on C:\, let's say C:\ABC, shared as a network folder as R:\ with full access (to this directory and all its contents) to all users. (Win2008R2) Inside the folder I have one specific ...
0
votes
0answers
698 views

How can I append data to a Windows registry value in a batch file?

How can I append data to a Windows registry value in a batch file? reg.exe seems to only support create/delete keys and values - I want to take an existing REG_MULTI_SZ value and append some more ...
0
votes
0answers
313 views

Rename and transfer files over network with a batch file

I have a folder C:\Data which contains continuously generated .csv files named after the date in format YYYYMMDD.csv, e.g. 20120510.csv. I want to rename and transfer all files except the one for the ...
0
votes
0answers
135 views

Copy files with start and end date specified

I have a batch script to copy a directory with files in it xcopy "C:\Test" "D:\Test" /D/E/C/R/I/K/Y But I neet the script which would copy only those files older than specified date&time1 and ...
0
votes
0answers
125 views

Is is possible to call /min name.bat?

I know it is possible to start /min name.bat, bt is it possible to call /min name.bat?
0
votes
0answers
788 views

Getting file owner on network share via dir

I have a batch file that does several things, and among them is: dir "\\network_share\directory" /Q /A:-D /S > output.txt The file then writes out lines like this: 01/01/2012 01:01 PM ...
0
votes
0answers
665 views

Command to close window from Command Prompt

I have some scripts to do some work for me on Windows 7, and one issue I have is that my most used script lives on a flash drive, clears out the Drivers folder, then opens the Drivers folder for me ...
0
votes
0answers
83 views

Create logical drives from batch

I have a need to have some logical drives that extend from my C: drive. My C drive is 200gb roughly and the two other drives P: and T: need to be 50Gb each. How can I create these two logical drives ...
0
votes
0answers
743 views

Problem with running batch file as scheduled task

I am trying to setup my rsync script to run automatically. It uses a key file for authetnication so there is no issue of missin ginput or something. I have user a. In user a's profile live a batch ...
-1
votes
0answers
13 views

Using vlc to batch generate snapshots say every 2-3 minutes or os?

Is there a way to batch generate snapshots every 2-3 minutes or so in Debian. I have a video of approximately 15 minutes and while I could use hotekey 's' to manually generate snapshots . Using vlc 2....
-1
votes
0answers
19 views

How do I make a generic BAT file to global add/delete printers from one server?

How do I make a script to global add/delete printers? I have tried using below but I keep getting a syntax error or some other error. @echo off set /p _global="[a]dd/[d]el :" set /p _print="Printer ...
-1
votes
0answers
34 views

Script/Batch File to open multiple windows of a single program and place them on different virtual desktops (Win10)

I have a Surface Book, which i use to take notes. I'm looking for a way to automate the following process: Note "VDx" refers to the virtual desktop feature within windows. x is the particular ...
-2
votes
0answers
2k views

Batch file to check the size and print the outout

I am trying to make a batch file that will check the size of f1.txt file. If the size is 1118, then "No Changes" will be displayed. If not, it will display "The file has been changed." @ECHO OFF set ...