<<Back to Computer Repair + Web design Blog | Computer Topic Categories

Using Batch Files to speed up tasks in Windows

Batch file

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 *.*”

Save batch files as .Bat

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.

Edit Batch File

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!

Share and Bookmark:
  • Digg
  • Yahoo! Buzz
  • Facebook
  • Twitter
  • StumbleUpon
  • Reddit
  • del.icio.us
  • Slashdot
  • FriendFeed
  • MisterWong
  • LinkedIn
  • NewsVine
  • Propeller
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Add to favorites
  • RSS
  • email
  • PDF
  • Print

More Related Tech Posts:

About Johnson Yip

I graduated from Vancouver Community College's Information technology Specialist certificate program in 2008 and became Comptia A+ IT Enterprise technician certified in 2009. I volunteer at a non-profit Computer Recycler and Refurbisher called Free Geek Vancouver. My interest includes computers, gadgets, art, movies, food, television, blogging, forums, websites and Video games. Welcome to my blog on computer, hardware, software, web design, and cms help. Enjoy your stay!
This entry was posted in Command lines, Computer, Computer Certifications, Computer Tutorials, Microsoft Windows, Operating Systems, Software, System Utilities, Tutorials, software tutorial and tagged , , , , , , , , . Bookmark the permalink.

4 Responses to Using Batch Files to speed up tasks in Windows

  1. JenniC says:

    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.

  2. Johnson Yip
    Twitter:
    says:

    Thanks for the suggestion, I check out biterscripting when I have the time!

  3. Mike says:

    Batch files, although not pretty, are a great way to customize repetitive tasks. Couple them with the “Scheduled Tasks” manager for such things as backups, and time synchronizing, and you are rolling!
    Mike´s last blog ..Send Email From A Batch File My ComLuv Profile

  4. Johnson Yip
    Twitter:
    says:

    I agree Batch files are great for repetitive tasks to use with Task Scheduler. I’m also glad that software programmers these days program in auto-shutdown when a disk defrag or disk cleanup is done for software like CCleaner, and Auslogic disk defrag.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled

Spam protection by WP Captcha-Free