Resources » General Articles » Tips & Tricks

How to create a batch file in Windows 7


Posted Date:     Category: Tips & Tricks    
Author: Member Level: Gold    Points: 8


This article explains how to create a batch file in Windows operating system which is used to execute a batch of Dos and as well as windows command.



 


How to create a batch file in Windows 7


Windows provides so many options in order to improve the performance and usability of the system. Most of the utilities which is provided by Windows operating system can be run from command prompt. All of the utilities can be run as a command.

Batch files can be used to make a set of command to execute in Windows operating system. Support if you want to do series of activities in Windows then you can add all the commands in a batch files and it will executes all the command one by one. It is one of the easy ways to automate a process in Windows operating system.

You can add the system command in the batch processes and you can run the processes in specific time using the scheduler.

You can automate an administrator task in batch file easily. Batch files are simple text file which will have some basic dos command and you can also run the system command that you can run in Windows command prompt.

In order to create a sample batch file open notepad and type the following command and save the file as Test.bat

ECHO OFF
Dir
PAUSE
Ipconfig
Pause
Cleanmgr

Check the below screenshot

Windows 7 batch file

ECHO OFF is DOS( Disk Operating System) command and while running the commands in the command prompt it will not show the command that is executing. Dir will just list the files and folders in the directory.Pause will wait for the user input, press enter key of other key to continue. Ipconfig is a Windows command which will display the network configuration of the system.Cleanmgr is a Windows utility command which will open the disk clean manager Window.

Once the batch file is created and you can double click the batch file using the mouse and it will start executing the series of Dos commands and other command that you typed in the Batch File

Windows 7 batch file

Check the list of DOS commands from the below link

Click here for the List of DOS Command
Related Resources:


Read related articles: Windows 7    Batch Fille    


Did you like this resource? Share it with your friends and show your love!





Responses to "How to create a batch file in Windows 7"
Author: TECHNOCIA    06 Mar 2011Member Level: Silver   Points : 0
nice article


Guest Author: Carlo     14 Nov 2011
I have a batch file which was running on XP and Vista but will not run on Win 7. Why?


Guest Author: Roger     18 Sep 2012
It's much easier to create batch files with a special tool called Dr.Batcher: http://www.drbatcher.com


Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: How to Limit the reserve bandwidth in the windows 7
    Previous Resource: How to deal with slow Windows XP computer
    Return to Resources
    Post New Resource
    Category: Tips & Tricks


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    Windows 7  .  Batch Fille  .  Batch command  .  DOS command  .  
    Subscribe to our upcoming monthly newsletters and learn about the new opportunities in Techulator.com

    Sign up for our Newsletter!
    Subscribe to RSS Feeds by Email

    Online Members

    Anand Gaurav
    More...
    Awards & Gifts
    Active Members
    TodayLast 7 Daysmore...

    Talk to Webmaster Tony John