Home
Computers
Operating Systems
Computers And Internet
Viruses
Programming
Batch Files
Contact
Guestbook
Batch Files
 
Batch files are files that allow MS-DOS and Microsoft Windows users to create lists of commands and/or programs to run once the batch file has been executed. For example, a batch file could be used to run frequently run commands, deleting a series of files, moving files, etc. A simple batch file does not require any special programming skills and can be done by users who only know DOS commands.
To create a batch file in windows,
1.      Click Start
2.      Click Run
3.      Type "notepad" and press enter.
4.      Once notepad is open, type the below lines in the file or copy and paste the below lines into notepad.

@echo off
echo Hello this is a test batch file
pause
dir c:windows
5.      Click File and click Save; browse to where you want to save the file. For the file name, type "test.bat", and if your version of Windows has a "Save as type" option, choose "All files", otherwise it will save as a text file. Once all of this has been done click the Save button and exit notepad.
6.      Now, to run the batch file, simply double-click or run the file like any other program. Once the batch file has completed running it will close the window automatically.
 
 
 
 

Today, there have been 1 visitors (1 hits) on this page!


This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free