Microsoft Certifications Practice Tests:   Exam 70-506   Exam 77-881   Exam 70-583   Exam 70-642   Exam 77-882   Exam 70-680   
windows 8
 


ForumArticlesMicrosoft ExamsWindows 8 ArticlesWindows 8 NewsProduct Reviews



Resources » General Articles » Tips & Tricks


How to create a batch file in Windows 7


Posted Date:     Category: Tips & Tricks    
Author: Member Level: Diamond    
Rating: 2 out of 52 out of 5Points: 8 (Rs 4)


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


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




Related Resources:


Read related articles: Windows 7    Batch Fille    


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?


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)
    Website: We will link to your website, if the comment is worth keeping!



    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 Windows resources by Email


    Awards & Gifts



    Silverlight 4 free practice test is now live!

    My Profile

    Online MembersPriyabrata Das
    gibin thomas baven
    More...

    Active Members
    TodayLast 7 Daysmore...


    Quick Links:Windows 8 beta
    Windows 8 Installation
    Windows 8 Features
    Google Plus
    Microsoft Office 365
    Microsoft Lync 2010
    Silverlight 5
    HTML 5
    Cloud Computing
    Rupee Symbol
    Internet Explorer 9
    Windows Azure

    RSS Feeds Resource Feeds
    Forum Feeds
    Job Feeds



    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.