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
0answers
28 views

SchTasks Windows 10 access denied

I wanted to create a task using SchTasks to run my batch file everyday 11pm this batch file starts a programm and runs a vbs script after the programm started. I created following Task: SchTasks /...
-1
votes
1answer
31 views

Batch to move files from root folder into sub-folders

I have a root folder: C:\Users\username\Desktop\New folder which contains .mp3 files that are named like this: 20162406_3346_234958_97270791720411 20162305_3315_163017_97620734220699 I tried ...
0
votes
2answers
25 views

Replacing certain parts of text file with variables in batch

I'm trying to replace stat.score and stat.level with corresponding variables, but it just prints stat.score=000099 to every line. Here's the code: @echo off mode con cols=100 lines=40 setlocal ...
2
votes
3answers
368 views

Batch merge/mux .srt with .mkv files

I have a folder with: TVShow - Episode 01.mkv TVShow - Episode 01.srt TVShow - Episode 02.mkv TVShow - Episode 02.srt TVShow - Episode 03.mkv TVShow - Episode 03.srt and so on... I already know ...
0
votes
1answer
26 views

How do I get current logged in user name when running a batch file as administrator

I have a batch file I can run to modify permissions to a folder in program files. It runs fine when the current user has local admin privileges, but for users who aren't I have to enter the domain ...
0
votes
0answers
11 views

How to find the pixelwise difference between every sequential pair in a directory of images in ImageMagick

I have a directory of 1,000 time lapse images, ordered by their timestamp. I would like to take the pixelwise difference between every two sequential images, and store the resulting 999 images in a ...
3
votes
3answers
36 views

Windows 7 command to add a leading zero to a batch of filenames

Having trouble getting the correct command syntax. We need to add a leading zero to a batch of files in a directory on a regular basis. I cannot download and install a software item to do so. The ...
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 the ...
-1
votes
0answers
17 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 ...
0
votes
2answers
26 views

GnuWin grep End-of-Line Anchor

I have GnuWin installed on a Windows 7 Enterprise SP1 x64 machine. I am trying to use grep 2.5.3 to match lines containing the word "true". The following is my working use-case: (echo true& ...
0
votes
1answer
49 views

Batch remove title from .mkv files

Trying to remove the "title" attribute from a bunch of MKV files. Windows Explorer is being blocked by COM Surrogate which is keeping this (How to remove title and other metadata from video files?) ...
1
vote
1answer
175 views

sending keypresses to a process using nircmd

I'm trying to use nircmdc to send a keypress to a background process (without bringing it to front). More precisely, i'm tring to send Ctrl+Shift+S to notepad++.exe: nircmdc win postmsg process ...
-1
votes
0answers
21 views

how to run putty cmds through batch files?

I am running cli cmds in putty through batch files.It is not taking text files data that has putty cmds.I am connecting through -ssh with a external hardware. putty.exe -ssh root@10.15.0.2 -m "C:\...
3
votes
2answers
8k views

How to add sites to local intranet from command line?

I’d like to add two IP addresses of our servers to the local intranet on a list of computers. It seems that there are some problem with our policy and some PCs take it while others not. Is it ...
0
votes
2answers
41 views

How do I make a batch script that toggles my internal Wi-Fi adapter?

It's been a few years since I used a computer that used Windows. I've been using Linux for a while. However, I do remember a few things about writing a batch script. (REM for comments, ECHO to print ...
0
votes
0answers
43 views

How can I make a batch file play an MP3 file that starts minimized?

I've tried many things such as: set "track12.mp3" ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration ...
0
votes
2answers
3k views

Copying a set of local files to FTP server

I want to copy a set of local files to ftp://124.30.124.230 (it will ask username and password). I want to do this work on 400 systems. I have planned to do this work by creating a batch file and ...
0
votes
1answer
14 views

How to select xml value using xml starlet

How do I retrieve a value using xmlstarlet? I'm trying to retrieve the Initial value 4.7 from the following xml file: <?xml version="1.0"?> <GCContextualMethod xmlns:xsi="http://www.w3.org/...
0
votes
4answers
2k views

Windows .bat fails when running from Scheduled tasks; runs fine when running from command line

I am trying to start a virtual machine via a batch file. The .bat file runs fine when I run it from the Windows command line. But when I run it from scheduled tasks, it exits with error code 1. I ...
0
votes
1answer
842 views

Photoshop batch process pausing on every action

I recently upgraded to Photoshop CS6 and imported my actions from my previous version. I am trying to run a batch script to automate an action. Every step seems to require a input click. In other ...
1
vote
1answer
1k views

Windows batch file or script to load exported Wi-Fi XML profiles onto a new laptop

This probably is as simple as reconfiguring the standard code used by MS for the same thing but .. I hope maybe someone has already done it. You can easily export a Wi-Fi profile to a USB including ...
1
vote
0answers
14 views

Matching filenames of different types, mirroring file structure, batch renaming

Ok, I have been searching for a way to do this for sometime. Here we go: I'm a DJ - I use .MP3 for personal listening, .WAV for performances. I get a song in .mp3 format, clean the file name to "...
0
votes
0answers
51 views

cut 10 sec from start and from end of video with ffmpeg

I'm trying to cut 10 sec from the begging and from end of videos. I have 150 short videos in mp4 and I want to do this in batch. I have downloaded ffmpeg (x64) and installed. When I type the command "...
-1
votes
1answer
32 views

Windows Batch - Service cycling with validation failing in for loop

I'm trying to set up some validation/timers to wait should the service take longer to cycle. If it fails, I will use something else to parse the log file and email me an alert should it fail. For ...
0
votes
1answer
15 views

Get list of files that match/don't match a query in Windows

I have a directory tree that contains ~150 files with a specific extension (.php) organized into different folders. Some of these files are marked on line 2 to indicate a certain status. I know that ...
0
votes
0answers
25 views

Prevent programs from opening

I'm writing a batch file that kills background processes, but some processes keep starting back up again. (Using Taskkill) I could loop the taskkill command, but that would use more CPU power than it ...
4
votes
1answer
102 views

Starting Programs in a Specific Virtual Desktop

When I boot my laptop, I'd like to have two programs open, A and B. I can do this using the startup folder, but I'd like to open A in my first desktop and B in my second desktop. Is this possible in ...
2
votes
2answers
937 views

How to install a dummy printer by command?

i need to install a fake/dummy printer on windows using a command or a batch file. I was able to install a dummy printer using the wizard and selecting a NUL port. The problem is that i need to add ...
0
votes
2answers
55 views

Can I batch move many files in many separate subdirectories/folders to a single main one in windows?

I have a ton of files in locations like this: C:/Users/(Username)/Desktop/(Parent-Collection name)/(filename1)/(filename1).ext .../(filename2)/(filename2).ext .../(filename3)/(filename3).ext I am ...
2
votes
4answers
4k views

Delete set of files using find command

Background Delete a set of files, scattered across different directories. Problem The following code does not work (the unescaped | causes issues); for %i in (dir /s/b | find "lock") do echo del %...
0
votes
1answer
433 views

How to launch minecraft 1.8.5 from Command Line

I'm working on a custom MC Launcher, but I can't find a way to run Minecraft (1.8.5) from the command line. I saw some other examples which used to work fine on 1.7.2, but I can't get that code to ...
5
votes
5answers
15k views

Get custom date format in command in Windows 7

I'm creating a backup script in a .bat file in Windows 7. As part of the script I create a log file. I'd like to create the log file with the following date format: YYYYDDMM_HH24MISS_backup.log Any ...
0
votes
0answers
20 views

How to wait for Autodesk installation to be completed when over the network?

The title may not be all that clear, but I'll do my best to explain better here: Our company is using a bundle of Multi-Seat Standalone et Network licences for Autodesk Building Design Suite Premium ...
0
votes
3answers
3k views

Batch script to append record to csv files

I have a bunch of stock data in csv's that I am backtesting trading strategies on. The problem is that my strategy buys the open market price if a signal was found yesterday, unfortunately my data is ...
1
vote
1answer
395 views

Batch convert a folder of .mkv files to .m4v files using ffmpeg in MAC OS X

Is there a way to batch covert a folder of .mkv files to .m4v files using ffmpeg in Mac? I setup a service that will do individual files, but I really would like to batch them. The 'Run Shell Script'...
1
vote
2answers
99 views

Converting NEF files to JPEG

What is the fastest way to batch convert NEF files (Nikon RAW) to JPEG? I'v tried FastStone Image Viewer and Nikon's Capture-DX on my RAM-drive but they appear to be very slow, although Capture-DX ...
-2
votes
1answer
21 views

how to move files from sub-folder to folder

I've got: C:/PICS/ASF/photos/files (.jpg) C:/PICS/DFS/photos/files (.jpg) C:/PICS/HGD/photos/files (.jpg) C:/PICS/FTG/photos/files (.jpg) .....etc In every "photos" directory is more than one ....
3
votes
1answer
44 views

Notepad++: Create shorcut to Batch file and open file afterwards

I have a batchscript with the following contents: python.exe c:/path/to/my/pythonscript/script.py %1 which I currently use to be able to drag-n-drop a file onto it. script.py then makes a duplicate ...
0
votes
1answer
43 views

How to write to a file over network sharing center

I am a fairly novice batch coder but I know most of the ropes... Except... How do I write to a .txt file on another computer on my Network. As both computers are Windows, they allow for network and ...
-1
votes
1answer
24 views

Using wmic to Find if Product Exists

I'm looking to write a batch file that checks to see if a program exists, and if it does exist I'd like to have it uninstalled. This is what I've got so far. @echo off (wmic product get name| ...
0
votes
0answers
9 views

HTK Warning [-2637] how to break batch file

I have batch file for my HTK routine, and problem sometimes occurs in process increasing gauss mix. Professor told me to stop with increasing when this warning occurs. For increasing I am using HHed ...
0
votes
0answers
15 views

Running Matlab with clusrun

I'm pretty much a Microsoft HPC rookie, but here goes: I have a small cluster of 3 computers running Windows Server 2012 R2. I have the Microsoft PC Pack, which includes a clusrun command (https://...
-1
votes
3answers
51 views

Drop a file onto a desktop icon to attached it to a new email?

Hello Superuser Community! I already tried searching for a solution but I could not find anything. What I want to do is the following: I would like to be able to drop one (or best any number) of ...
1
vote
3answers
50 views

Batch script (cmd) resulting in DD-MM-YYYY_weekday format

I need to use date /t command and convert the date format to DD-MM-YYYY_weekday with all the "-" and "_" as listed I can't find an answer on my question. Could you please help me?
0
votes
1answer
24 views

Execute batch file on computerA to open excel file and trigger macro on computerB

So basically, the reason why I need this is because we can't install excel in the server, so we will have to use another server(computerB) to host all our excel files and macro. Current process is ...
2
votes
1answer
51 views

Set focus onto a specific window using VBScript

Is there a way to set the focus onto a specific window using VBScript ? Window name should be settable by something. (Not an additional program such as AutoIT or so) (Windows 7 Pro)
2
votes
3answers
2k views

FTP batch file works from command line, but not scheduled task

I want a Windows scheduled task to execute an FTP batch file which will upload some files to my server. If I run the argument below from the command line then it executes successfully. ftp -i -s:C:\&...