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

Some guidance in a .bat that adjusts the Screen Saver via Active Setup?

The request: I was asked to look into changing en masse our screen lock policies here at the main office, which would be easy enough to do if I remote logged on and made adjustments one-by-one. But ...
-1
votes
1answer
42 views

Cleanup Windows on startup or shutdown

My Environment Multiple VMs all comprising of Various versions of Windows which is power on/off as needed i like to cleanup my %temp% and other places on reboot so as to save space and also speed up ...
1
vote
0answers
53 views

Renaming a pdf file (scanned document) using OCR. It should read 3 zones and rename accordingly. e.g. Streetname_LastName_Date.pdf [closed]

I am running into trouble with tons of paperwork. I want to have it digitalized in order to simplify search and therefore cut down a huge amount of time spent on looking though the paperwork. It is ...
2
votes
1answer
90 views

How to delete all files that don't have a certain string in their name

I have seen Deleting all files that do not match a certain pattern - Windows command line However, I have not seen anything regarding how to delete everything that does not contain a certain string ...
1
vote
1answer
180 views

Batch command to open url and fulfill username and password

I'm currently opening a local url from batch command (.bat file) like this: @echo off start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE http://some_local_address:88 This is working fine. ...
0
votes
0answers
38 views

malware or Google Drive not working due to batch file being opened by text editor by default

I'm seeing some suspicious behavior on startup, and am wondering if I should be concerned. What's happening is C:\Users\<me>\AppData\Local\Temp\tmpevpnra\run.bat is being opened in Notepad++. ...
0
votes
0answers
12 views

Toggle what happens when the lid is closed, with a batch file on the desktop? [duplicate]

Is it possible to create some kind of batch file which can be added onto the desktop, which toggles whether my laptop sleeps or does nothing upon the lid being closed, in Windows 10? Usually i like ...
1
vote
1answer
100 views

PowerShell & Batch files

I have written a PowerShell line directly in PowerShell and it works perfectly but I can't get the .bat to run it. I think my PowerShell script running is blocked by corporate. If I can get the ...
0
votes
1answer
43 views

Copy file names to clipboard but skip file extensions

I'm using this script in the batch file I created to copy the filenames to clipboard then I can use, @echo off set dirpath=%1 dir %dirpath% /b /n | clip exit I created a shortcut in Windows SendTo ...
0
votes
0answers
47 views

Command from batch file not recognized unless run from Desktop OR as administrator

I have installed UnZip so I can extract files by running batch files, I added the bin folder to both PATH (user variables) and Path (system variables), but I still have the following problem: I ...
0
votes
1answer
45 views

Batch convert flv to mkv with mkvmerge

I have a bunch of *.flv videos in a folder on my Windows computer that I would like to convert (or remux) to *.mkv. Since I have a lot of files I would like to automate this process with a batch ...
0
votes
0answers
25 views

pscp not accepting passwords with -pw in batch FOR loop

I am trying to copy a list of files from local (Win7) to remote (Ubuntu14.04) with pscp. The paths to my files are stored in a text file file_ids.txt: T:\file_1.txt T:\file_2.txt T:\file_3.txt The ...
0
votes
0answers
20 views

Run a batch file whenever a file in Dropbox is updated [duplicate]

I need to get a batch file which is stored on my Windows PC hard drive to automatically run whenever a file in one of my Dropbox folders is changed. How can I accomplish this? Note: The amount of ...
0
votes
1answer
23 views

Trouble in using Xcopy to copy to a network path in batch file

Code: ::CopyTest.bat @ECHO echo 123>>%temp%\MBDocuments.txt xcopy "C:\Users\Foo\Documents\" pushd "X:\foo team\Team Members\foo\Documents" del /q %temp%\MBDocuments.txt pause So I have ...
1
vote
1answer
31 views

Batch Inverting .PNG Images while maintaining transparency

I have a large number of monochrome PNGs that are black on transparent. I would like to invert them to be white on transparent. I've tried using XnConvert but it doesn't maintain the transparency.
0
votes
0answers
21 views

Batch - Schtasks Onstart Repeat Interval

Command I'm using: SCHTASKS /Create /SC ONSTART /TN "TaskName" /TR "path" /RU "user" /RP "pass" /RL HIGHEST I'd like to repeat this task every 10 minutes, which would be doable with the /RI flag, ...
1
vote
2answers
134 views

Script to merge a specific line of multiple .txt files into one .txt file

I have ~800 .txt files. I need extract the name of each file, and one line inside the file, and export it to a new .txt file. The line I need to copy will always start with "System Boot Time:" I'd ...
1
vote
1answer
111 views

How to open cmd and run a batch file in it in one command

I'm making a program which runs C++ using G++ and to build/run it, it creates a .bat file which should then be ran in a new cmd window. From Java, I can run commands, but just running a command ...
1
vote
1answer
55 views

How can I delete sections of HTML files in a batch of 700+ files?

First off: I'm using the latest OSX and can edit the HTML files with CotEditor and KompoZer. I am however unexperienced with HTML editors in general :/ If I have to - because one of your answers is ...
0
votes
0answers
12 views

Get Character At in an Batch Parameter?

I want to create a command go as follows: go foldera\folderb :: executes :: cd foldera\folderb :: dir go Z:\foldera\folderb :: executes :: Z: :: cd foldera\folderb :: dir I tried with just cd and ...
0
votes
1answer
54 views

Batch extracting multiple .aac tracks from an .mp4 using ffmpeg?

How do I create a ffmpeg .bat file that will let me drop in .mp4 file(s) and extract multiple .aac tracks without any converting or transcoding taking place ? I do know that there will always be 3 ...
0
votes
0answers
14 views

QTLIBS,QTMAKE should read from the environmental variables

In a batch file I have set the absolute path of Qtlibs, QtMake and QTTools like this: set QTLIBS=C:\Qt\Qt5.5.1\5.5\mingw492_32 set QTMAKE=C:\Qt\Qt5.5.1\5.5\mingw492_32\bin set ...
-2
votes
1answer
54 views

How to change DNS when VPN is down?

My DNS are on the other side of my VPN (operator peering). So web is unreachable if the VPN is down. I need to change the DNS on each computers to public DNS (150 Windows computers from XP-SP1 to ...
1
vote
1answer
81 views

Batch file/alias/powershell to activate/deactivate IE 11 proxy server

I would like to have a batchfile/cmd alias/powershell command to switch the useage of a proxy server in IE11 on and off, so basically to check/uncheck the following settings: ...
1
vote
1answer
44 views

Swapping from LAN to WLAN upon reaching a certain threshhold

The problem: My desktop PC is connected via LAN/Network cable and DLAN (through electric powerline) with the router. This connection is stable for most of the time, but after a random amount of ...
1
vote
0answers
221 views

Configuring Windows 8/8.1/10 File History via command line

tl;dr: Is there a way to configure windows 8 file history via unattended command-line/some script? long story: I'm configuring a lot of stand-alone (non-domain) PCs and I think some backup is better ...
1
vote
1answer
232 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 ...
1
vote
1answer
106 views

How do I create a batch script creates certain registry entries in all subfolders

I was reading this on the web: Press Windows Key + R, type "regedit" in the box, then press enter. Go to this path: ...
2
votes
1answer
49 views

How to quickly copy *specific multiple* files?

Say I have a list of filenames like these, file01.001 file02.abc fiAl.12x ect. All with full extensions. They are all in the main folder C:\ABC. Some files will be in subfolders or even in ...
1
vote
1answer
87 views

How do I change the folder this script saves a downloaded video to?

I'm using HotStarLiveStreamer https://github.com/biezom/hotstarsportslivestreamer and I'm having trouble understanding how I can modify the .bat file script to suit my purposes. @ echo off call ...
0
votes
0answers
71 views

How remote deploy a windows provisioning package

I have created a provisioning package (*.ppkg) with the Windows Imaging and Configuration Designer (ICD.exe). I know I can double click on it to install it on the current machine. My question is how ...
0
votes
0answers
40 views

If a folder dont exist, then create it recursively, then copy a file into it

Just lik the title says, what I need is a batchscript or something that'll do this: If a folder doesn't contain a .bmp called samp.bmp, then delete the main folder (as an example z:\robert doesn't ...
4
votes
1answer
65 views

How do I escape a certain character in a variable in a batch file

I made this script but it doesn't work : for /R %%f in (*.mkv) do ( ffmpeg -i "%%f" -vf subtitles="%%~nf.mkv" -acodec copy "%%~nf.mp4" ) PAUSE After looking for the problem, I found that the ...
1
vote
1answer
56 views

Batch file unable to edit the HOSTS file

I have a host edit that I need to deploy for a department. Rather than add that to their current image I was planning to add that as a post deployment script. I cast about looking for a script to edit ...
1
vote
1answer
111 views

Enable Wifi via batch file in Windows 10

In Windows 10 a Wifi Adapter has a Software and a Hardware state. When I do netsh wlan show interfaces I get the following output. (Sorry my Windows is german) ... Name : WiFi ...
0
votes
1answer
50 views

Command line (Windows) to update same xml file with trim

Currently I am using a curl command to grab data output to a text file and trim top 14 line away, convert the file to abc.xml @echo off call :sub >output.txt exit /b :sub c:\curl -X GET ...
0
votes
1answer
31 views

Rename folder on remote server

I am calling a .bat file which contains the following command net use \\128.545.k.k\E_Drive /user:Username psw to connect to a remote server. I would like to rename a folder on the remote server i ...
1
vote
1answer
46 views

Batch file rename with suffix as random alphanumeric

Here is the code which renames all the files in a folder to alphanumeric. @echo off setlocal disableDelayedExpansion set "chars=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" for /f "eol=: delims=" %%F in ...
1
vote
1answer
24 views

Batch process on photos to be match based on eye positions

I'm not sure if this question related to this site. I have a series of photos (faces) that are different in distance and pose from camera (all of them are selfies) want to match them based on eyes ...
2
votes
2answers
281 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
2answers
39 views

Copying and renaming of .xlsm files using batch

Its glad to be here and i am really excited n new to batch scripting. I have been using a batch containing below for copying an excel from one folder to another { @echo off cp -r ...
1
vote
1answer
131 views

can you start a program at windows startup using bat file and send it file path

can a bat file or vbs file take an argument (a path to an exe file) then create a shortcut to that file and place in the startup folder or add a registry entry to run that exe at windows startup but ...
3
votes
0answers
29 views

Terminate the Access macro after a specific time

I am running several MS Access macros from a batch file. The macro runs several queries in AccessDB. Things are working fine. But, I want to add a check. If a macro runs longer than a specific time, ...
1
vote
1answer
15 views

“If” statements not working as demanded in batch game, and math not working properly

When the following piece of code is run in my Batch game for a fight, no matter what the input is it will always attack and go to FIGHTPROCESSORLOOP, and will tell me "Unbalanced parenthesis", while ...
2
votes
1answer
65 views

Batch Script to Bulk Rename Files - Strip off Parenthesis and all Characters between

I wish to rename a group of files in a particular folder in such a way that everything between and including the parenthesis is erased. For example a file with the name of: "78 Tax Tips for ...
0
votes
1answer
38 views

Copy file name to clipboard and paste it in chrome omnibox

What I'm after is to be able to come home and have the webpages I need already open. Using a combination of IOS Siri & Reminders, Evernote, IF (formerly IFttt) and Dropbox ive managed to be able ...
1
vote
1answer
59 views

Run Atom using a bat file after changing directory

I have writen in my bat file cmd /k cd /d"C:\Users\amanz\Desktop\Introduction - Computing\Java files" call atomer.bat right now, it just seems to change the directory and stops right there. It ...
0
votes
0answers
109 views

Could not start PSEXESVC service on Target Machine

I want to run batch file into remote machine and i was using psexec cmd for that but i got error like "The remote procedure call failed." My command is, E:\user>psexec -i -s -d \\192.168.1.41 -u ...
0
votes
1answer
31 views

Batch convert TIFF to PDF and add text

I got a bunch of TIFF files that I am interested to convert to a single multipage PDF file, which should be easily achieved using ImageMagick. However, I'm also interested in adding text to each ...
0
votes
1answer
25 views

Batch file to detect when a device connects to hosted wireless hotspot on a laptop

I have created a wireless hotspot on my laptop using: netsh wlan start hostednetwork This works perfectly. I have a raspberry pi that automatically connects to this network automatically, however ...