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

How to download from a direct link using batch files and Google Chrome?

I want to create a batch file which is capable of downloading any files from direct links. I already tried this: chrome start ...
0
votes
1answer
29 views

How do I make exclamation marks show using echo

Earlier today, I was continuing on making an RAR Password Decryptor. I was testing it out on a test RAR file with the password being just an exclamation mark but when I use my Decryptor all it says is ...
1
vote
0answers
23 views

Batch - Renaming network interfaces based on index with WMIC and netsh

I have two Intel NIC's that I need to rename based on their index numbers, WMIC is nice in that it seems to always return index numbers in numerical order so we can take the output directly without ...
1
vote
1answer
21 views

Batch file FOR command skipping lines

I need some help with the FOR command in batch filing. What I want to do is read the file "Test.txt" and read only the third line and turn it into a usable variable within this batch file. Here is ...
-1
votes
0answers
12 views

Is it possible to create a batch file to delete folders and contents based on folder name? [on hold]

I use a program called Kodi (formerly XBMC) with an AddOn called Genesis and I recently downloaded a massive movie library consisting of over 11,000 movies, shorts, and documentaries dating back to ...
0
votes
0answers
10 views

How to append output from sqlcmd argument to txt file?

I am 100% new to batch files, so bear with me. sqlcmd -U %username% -P %pw% -S ServerName -d TableName -i "%%G" >> output.txt This doesn't work. It works fine without the >>. The error ...
2
votes
2answers
24 views

How do I detect the number of parameters to a batch file and loop through them?

Is there an easy way to detect the number of parameters passed as arguments to a batch file, and then use for /L to loop through them?
1
vote
1answer
47 views

Batch create PDFs by combining all PDFs in folders [duplicate]

I have hundreds of folders full of PDFs. I would like to create a PDF out of each folder called the name of that folder. For example, "folder_name_1" has 10 PDFs. I want to convert it to a PDF ...
0
votes
0answers
34 views

batch script to list local hard drives and then do a dir command on each drive

I tried to make a script following this topic "batch script to find drive letter of a mounted device" With help of one stackoverflow user we got the script running. This is the script: @echo off ...
-3
votes
0answers
26 views

how to reduce laptop screen brightness by .bat file [closed]

can anyone program 2 batch files that 1) blocks the screen(blackout where the user can't do anything) and over that black screen displays a msgbox.And this screen block and msgbox should last for only ...
3
votes
2answers
80 views

Command Line : Concatenate multiple files by date

I have got a plenty of .txt files in a directory. The directory also contains .png and some .pdf files. I have successfully concatenated .txt files using this command : @ECHO Off SETLOCAL for /r %%f ...
0
votes
2answers
26 views

Windows Batch File to move contents based on file type

I was figuring out a way to manage my downloaded files from chrome.I want that my pdf file should save in ABC directory, audio file should save in XYZ directory etc.I thought a way to do so through ...
1
vote
1answer
35 views

Windows Batch to read TXT and parse lines to CSV

I've made a good deal of headway by searching this site and learning the ridiculous language that is Windows batch scripting, but frankly I'm stuck. The sample below is from our lab's old radiometer ...
0
votes
0answers
40 views

Windows Batch file nested IF statement running both IF and THEN

Not sure why this nested IF statement won't work right. I can't find any issues with it. The Last code block actually works properly, not sure why the first one doesn't. The first script is running ...
1
vote
1answer
27 views

Windows Batch to read TXT and parse lines into JSON

I've made a good deal of headway by searching this site and learning the ridiculous language that is Windows batch scripting, but frankly I'm stuck. The sample below is from our lab's old radiometer ...
1
vote
1answer
33 views

how to make a batch file close automatically

I have a .bat file which its content is like this: @echo off nc x.x.x.x 23 < commands.txt exit in which nc is a .exe file in the same directory nc.exe known as NetCat. The commands.txt file ...
0
votes
1answer
18 views

Disable Sharing Wizard with Batch?

How can I disable the Sharing Wizard option that's win the Folders Options? I want to be able to disable it with a batch command. Any help is appreciated!
-2
votes
1answer
35 views

I need a batch to open an file whenever the workstation is unlocked

So the batch file I need has to open an excel file whenever the password is typed to unlock the computer.I know this thing can be done with Task Scheduler but I need a batch file because this action ...
1
vote
3answers
157 views

Is there a way to open a website URL from a text file that lists 600+ URIs via a batch file?

How could I write a Windows batch script that could allow me to open an URL, with a browser—Firefox or Chrome—from a txt file containing all the URIs? The point is: I would like the script to open ...
0
votes
1answer
43 views

Progress indicator in a batch file while tracert runs

I have a batch file that runs fairly quickly, BUT there are a couple tracer's that take forever to run. I want to find a way to show that something is happening (NOT showing the tracert results ...
0
votes
1answer
20 views

Suppress output of nslookup command in batch file

Trying to cleanup my batch file... Having problems with the following command still printing out some info: FOR /F "tokens=2" %%a in ('nslookup myip.opendns.com resolver1.opendns.com') do (set ...
0
votes
2answers
35 views

How to write decisions on batch files?

I use batch files a lot to make my computer do things for me. But mostly i make it do things that I've already decided. Like opening my hidden file if I'm alone, or start playing a specific playlist. ...
0
votes
1answer
19 views

Run a command in all sub-folders in a batch file

I have a batchfile that looks like this: IF EXIST icon.ico ( attrib -S -H -R desktop.ini echo f | xcopy /H /Y "%~dp0desktop.ini.txt" desktop.ini attrib +S +H +A desktop.ini ) This works ...
0
votes
1answer
49 views

Windows Command line get disk space in GB

I'm trying to create a batch file to pull the total size and free space of the C:\ drive of servers (locally run script). I also need the output to be easily readable, so bytes is not going to work, ...
0
votes
3answers
41 views

Recursively move files to relative subfolder

I've looked around for topics about this but I fail to achieve want I need. Any solution, either in Ubuntu or in Windows cmd would be greatly appreciated. The current structure is /folderA/*.txt ...
-1
votes
0answers
56 views

How to Export/Import Windows 8.1 VPN settings

Most tutorials online go through the process of Importing/exporting a windows 7 and below VPN. However I'm attempting to complete this process on a windows 8.1 machine. The process I followed is as ...
0
votes
1answer
22 views

copying data from canon camera batch script [closed]

I am trying to copy all the data from the canon camera to the pc using a batch script, but I'm having trouble, I think the reason for this is that I'm using "This PC" in my path... not sure how to get ...
0
votes
1answer
31 views

Macros doesn't load on powerpoint startup

I have created a powerpoint macros to run a batch file when slideshow starts. This is my code Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow) If SSW.View.CurrentShowPosition = _ ...
1
vote
2answers
24 views

How do I move files not accessed for a long time using a batch file?

I like to move files accessed for a long time. For instance: if I do not access some file by 7 days, it move to old sub-folder. file1.txt 1 days <keep> file2.txt 2 days ...
0
votes
1answer
30 views

Sending the command to run a batch file from web(remotely)

Is it possible for me to make my computer run a batch file through a web command? To make it more clear let me try to explain what i am trying to achieve. I want to run a squid proxy server on a ...
0
votes
2answers
25 views

Creating Directory Dynamically by using Windows Batch File

I have a question over here that I wish to achieve. Let's say the scenario looks like this: In BuildFolder there are these files: Z:\BuildFolder\Build#170 Z:\BuildFolder\Build#171 ...
0
votes
1answer
18 views

How to batch check audio files can play

Background: I have ripped my CD collection to FLAC but I had a drive error which were repaired with the standard windows tool. Error was likely due to unplugging before safe removal. I want to be ...
0
votes
1answer
23 views

Batch command returning weird error

I have been spending hours working on a command to iterate through sub-folders and find what you searched for, but it is returning this: Searching for: Text Doc.txt C:\Users\Tyler\Desktop\"Text ...
0
votes
0answers
10 views

Scale multiple DXF CAD files in AutoCAD?

I have a few thousand DXF CAD files that need to be scaled from imperial (inches) to metric (millimeters). The scale factor is fixed. Is there a way to scale all these files in batch via AutoCAD ...
0
votes
2answers
36 views

Windows shell to play (enqueue) all video files in correct order

I'm burning series on a DVD. I'd like to include Play all option to play them all. Of course, this should work for any player the system has installed. What I'm trying to do is to invoke the very ...
1
vote
1answer
76 views

Get Current User Logged on Time (CMD Batch)

OS: Windows 7, Windows 8, Windows 8.1 Using the Windows command line, I can see the current user's logon time using the quser command. This results in more output than I desire, so I'm hoping to use ...
0
votes
0answers
35 views

Zip Folder Files using CMD commands in Batch Files [duplicate]

I would like to ask how to zip folder files using cmd commands in batch files. I am quite confused using this command which I found also in one of the questions asked here: for /d %%X in (*Path*) ...
-1
votes
1answer
34 views

Folder full of .jpg files. Batch convert each to a video with duration of X seconds

I am looking for a way to mass convert a folder of image files to a video (one per image), where each of the images is taken and placed on the video for the full duration of the video, e.g. 30 ...
0
votes
0answers
25 views

Command works in C:\ But not in Users

I am working on a backup program before we image users computers and I want to search for certain types of files. for /r /d %a in (*) do @copy "%a\*.png" "%usr%\file\pic" < All It works great ...
0
votes
0answers
21 views

Script will not continue

I have a batch script that deletes a folder but if the folder cannot be found, then the script stops. I am using the follow command: rd Folder anything underneath that command is not executed if ...
1
vote
1answer
32 views

Delete batch while it is open

I have a batch file that I want to run and after it runs code I want it to delete itself. Is it possible to do that? I've already tried using del and using rd to delete the directory where the file is ...
0
votes
1answer
54 views

Remove duplicate entries using bash, awk or sed

How can i search for duplicate data using batch? Goal is to remove duplicate "Changelist: XXXXX" entry from data.txt file. I'm kind of stuck, can somebody help me? Please take a look at output.txt ...
1
vote
1answer
41 views

How do I create a batch file that will create a folder for each day of the month? [closed]

At the beginning of each month inside a directory, I need to create a folder for each day in that month (in the format of DDMMYYYY). I'd like to just run this script on the first day of each month ...
10
votes
2answers
818 views

How can I compare the versions of two executables from the command line?

I have two executables (file1.exe and file2.exe). Both are the "same" file, but one is a newer version from the vendor than the other. When I open up the properties for one of them, I get the ...
-3
votes
1answer
31 views

Batch output does not convert version placeholder in result

So in this batch I want to make set /p pv="2.1.5" echo Program V : %pv% set /p rn="0.0.1 [Initial Release] , 0.0.2 [Some Blah]" echo %rn% set /p rn2="1.1.3 [New Things, Bug Fix & Improvements] , ...
0
votes
2answers
65 views

batch file to find a word, extract 2 line above the word and write it in diffrent text file

In my scenario i need to check my file (XXX.txt) for the word "SPOT". There will be few of SPOT word in the file. Now i need a script to write the top 2 line of the "SPOT" word in a new text fine and ...
0
votes
1answer
69 views

How to use Powershell command invoke-sqlcmd in batch script

I have a Powershell command that I want to be run in a batch script. It works well in the Powershell console, but I cannot call it properly in batch script. The Powershell command goes like this: ...
0
votes
1answer
33 views

.bat that calls AFUDOS to flash BIOS

I've got a .bat file that is supposed to flash the BIOS on my laptop. It reads as follows: @AFUDOS T.105 /p /b /n /e /x /reboot Before actually running it, I would like to unterstand what it does. ...
0
votes
1answer
43 views

Win7 - Batch convert script - mp3 to ogg?

Trying to convert some mp3 to ogg using VLC on Win7. I started by modifying what I found here, but couldn't get it to work: How to convert several files of one type (e.g. wav to mp3) using VLC or ...
-1
votes
1answer
36 views

How to add a program in safe mode start up registry using batch script?

We have a custom student computer activity monitoring software. I need a batch script to add this program in start up registry so no one can avoid by using safe mode. I want edit this registry ...