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
3answers
3k views

What is the “language” of a .bat batch file on windows?

When windows is running one of these programs what is the actual language being used? I am guessing C++ sorry if this is in the wrong area this is my first question :D
2
votes
0answers
36 views

Converting Multiple .doc files to searchable .pdf

I have a batch command file that runs daily converting data extract files to .txt, .doc, and then to .pdf formats. I run a series of formatting macros in Word on the .txt file before saving to .doc ...
1
vote
0answers
33 views

Auto Sort files from one folder to another

I am looking to create a folder that whenever a file(s) is placed into it, a batch file is triggered to properly place the file(s) in the correct folder(s) based on aspects of the filename (similar to ...
1
vote
1answer
119 views

Batch Loop used to reg query a list of keys from txt file and reuse data value

I need a batch loop that should extract a data value and use it in its next command. All registry keys I want to query has been saved into a *.txt file. Example: The following command will return ...
1
vote
2answers
42 views

Windows gVim edit file from Command Line

I have a Windows batch file that I use to edit files using Notepad++ @echo off if [%1] == [] ( C:\PROG\Notepad++Portable\Notepad++Portable.exe ) else ( C:\PROG\Notepad++Portable\Notepad++...
0
votes
0answers
52 views

Set specific User's account picture via Batch script

Background: Our company is a small MSP. I have written a script that works well to create our local admin account and set us as a local administrator. That part isn't super important. The main thing ...
0
votes
1answer
59 views

Xcopy a .txt over the network and add a date

I'm trying to take a .txt file and move it over the network with xcopy. Here is my code thus far: @ECHO off XCOPY /y pushd \\Oafrpnbtcsi01\Test_Systemplatz\Systemplatz_SLOT_1_Fail.txt rem get date,...
0
votes
1answer
55 views

How to start a server via Jenkins without outputting the server trace in the Jenkins console?

I have written a windows batch script to start an apache tomcat server via Jenkins. When the server starts to run, server trace is shown in the Jenkins console. But all on a sudden the window of the ...
-4
votes
1answer
50 views

Need bat file to randomly move 30 photos from a folder to another

I have a folder "C:\TEST\Clean" with many photos (let's say 436) and I have to move 30 of them to the folder "C:\Dropbox\Apps\AutoPost\For_Post_1". I have this so far but it's for 1 file and I need ...
0
votes
0answers
34 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
49 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
77 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
161 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
431 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
43 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++. I'...
0
votes
0answers
13 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
112 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
47 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
64 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
73 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
35 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
25 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
32 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
38 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
32 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
229 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
157 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 doesn'...
1
vote
1answer
57 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
86 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 QTTOOLS=C:\Qt\Qt5.5.1\...
-2
votes
1answer
55 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
120 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: IE->Options->Connections->...
1
vote
1answer
47 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
417 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
604 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
1answer
192 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: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\...
2
votes
1answer
53 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
106 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
95 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
42 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
73 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
77 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
141 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
78 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
37 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
48 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
29 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
3answers
492 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
43 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 \\Folder1\...