Using Batch Files to speed up tasks in Windows

Batch Files are very useful because they can be used to copy a lot of files with a click of a mouse. All you have to do is write the batch file and run it. You need to know MS-Dos/command prompt commands to make batch files work since batch files use MS-DOS as it main instructional language.
You use Notepad or any other Text editor and save the file with a .bat extension, you need to save as type to “All File *.*”

1. Start more then one file or program with a click of a mouse.
@ECHO OFF
Start ” ” “Paste file path to file in between the quotes”
Start ” ” “C:\Users\johnson\Desktop\listen.pls”
2. Copy all files and folder in a folder called Stuff on drive C:\ to U:\ and verify the files copied correctly.
U:
md stuff
cd stuff
xCOPY /e /v C:\stuff
pause
3. Run IPconfig /all
@echo off
c:\windows\system32\ipconfig.exe /all
@pause
4.Run NSlookup to find the NS IP of a website.
@echo off
c:\windows\system32\nslookup.exe
@pause
To edit a batch file you need to open it with Notepad or right click the batch files and pick edit.

You can make more batch files by typing more MS-DOS commands in your batch files. To Prevent your command prompt window from closing type pause to the end of your batch file.
Happy Batching!



January 13th, 2010 at 1:12 pm
Nice article. Batch files are good. I have seen people often use biterscripting ( http://www.biterscripting.com ) coupled with batch files. It complements some of the missing functionality of batch – especially automatic parsing, cutting, extracting, etc.
January 25th, 2010 at 10:53 pm
Thanks for the suggestion, I check out biterscripting when I have the time!