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

3
votes
2answers
3k views

Batch convert all html files in a directory into pdf files in windows?

I see one solution so far: http://www.htmldoc.org/ Are there any more out there which are suggested?
0
votes
1answer
22 views

How do I make exclamation marks show uising 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 ...
0
votes
0answers
33 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 ...
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 ...
10
votes
3answers
7k views

Windows CMD Batch, START and output redirection

I would like to run two programs simultaneously from a batch file, and redirect the first program's output into a text file like: start python 1st.py arg1 arg2 > out.txt start 2nd.exe %1 arg2 arg3 ...
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?
23
votes
11answers
74k views

How to prevent the command prompt from closing after execution?

My problem is that in Windows, there are command line windows that close immediately after execution. To solve this, I want the default behavior to be that the window is kept open. Normally, this ...
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
vote
1answer
46 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 ...
-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 ...
0
votes
3answers
1k views

How can I create a batch job (.bat) that zip a folder?

From 7zip I've downloaded their command line tool 7za.exe, and I have to following script: echo off cls set zip ="C:\7za.exe" set filename="%date%.backup.zip" set pathtobackup="C:\MyDocs" %zip% ...
0
votes
1answer
5k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
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 ...
2
votes
2answers
86 views

Windows 7 CLI not recognizing commands without specifying extension

I've apparently gone and mucked up my system in a strange way. Windows 7's cmd prompt is no longer recognizing any executable or batch files unless I explicitly type their extension. ...
-3
votes
0answers
26 views

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

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 ...
2
votes
3answers
1k views

How to batch rename files based on file header/metadata in Windows?

I have a directory full of randomly named files of different types, all with no file extensions. Most are images, with some videos, and some plaintext. I've used one of the Windows versions of file to ...
0
votes
1answer
43 views

Anki Cards: Batch import audio media

I have a spreadsheet of over 5,000 cards that I want to import into Anki. On each row, there is a reference to an audio file. Is there anyway to batch import the audio files? I know after the ...
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
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 ...
0
votes
0answers
39 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 ...
2
votes
3answers
7k views

How do you quickly remove underscores from folder names?

What is the easiest and fastest way to remove underscores from folder names in Windows? Running a Google search I found a VB script that automatically removes all underscores from file names in the ...
2
votes
3answers
3k views

Looking for utility to batch change created/modified date of multiple files in ascending datetime (windows XP/7/Mac/Linux)

I'm looking for a utility that batch/bulk modifies file datestamps (date-modified and/or date-created) to the second accuracy but does so in ascending incremental order, e.g. File1 2012-04-18 ...
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
31 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
724 views

runas /savecred error 1311 no logon server

Computer: Windows 8.1 Pro on company domain I have a program that needs to be run occasionally for testing purposes, and is installed and uninstalled regularly. I am not a domain administrator, and ...
0
votes
1answer
4k views

RocketDock System Tray Docklet

I'm looking for either a download location or a how-to on making an executable that toggles the system tray. All I need to do is create a small .exe or download one that toggles Windows 7's system ...
0
votes
1answer
416 views

How do you boot to a seperate drive that is cloned , for the purpose of a backup system partition?

I use Acronis to Image clone the system partion (OS) to a seperate drive (not disk clone). oops just the partition The purpose of the seperate drive with system partition cloned, is to be able to ...
-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
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
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 ...
0
votes
1answer
42 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 ...
1
vote
3answers
156 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
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
1answer
2k views

windows 7 batch file change desktop background

i want to write a batch file that changes the desktop background this is what i have reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d c:\j2Global\backgroundDefault.jpg reg ...
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
77 views

How to apply Windows 8 theme via batch file?

High contrast Windows 8 themes files are found at \Windows\Resources\Ease of Access Themes\. I want to be able to switch between hcblack.theme and hcwhite.theme using a batch file. How does one apply ...
0
votes
1answer
47 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, ...
9
votes
2answers
10k views

Programatically associate file extensions with application on Windows

I've just recently reinstalled Windows and in setting up my environment I've noticed that all my associations for the various programming languages I edit in Notepad++ have gone (naturally). I am ...
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 ...
0
votes
1answer
29 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
votes
0answers
48 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 ...
1
vote
1answer
895 views

Launch Minecraft 1.7.2 From Batch File and change Username

Near the start of the year I made a series of little batch scripts allowing people to run minecraft off of their usbs and not leave anything on the computer (symlink from %appdata%/.minecraft to ...
0
votes
1answer
22 views

copying data from canon camera batch script [on hold]

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
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
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 ...
1
vote
2answers
23 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 ...