How 2 create batch files..........?

Status
Not open for further replies.

wizrulz

GUNNING DOWN TEAMS
To create a basic batch file in MS-DOS, follow the below steps which give you an example of how to create a basic batch file.

Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
At the MS-DOS prompt, type edit test.bat and press enter.
If typed properly, you should now be in a blue screen. Within the screen, type:

pause
dir c:\windows
dir c:\windows\system


Once the above three lines have been typed in, click File and choose exit; when prompted to save, click "Yes". Users who do not have a mouse cursor can accomplish this same task by pressing ALT+F to access the file menu, then pressing "X" to exit, and pressing enter to save changes.
Once you are back at the MS-DOS prompt, type test and press enter. This will execute the test.bat file and begin running the file. Because the first line is pause, you will first be prompted to press a key. Once you press a key the batch file will run line-by-line; in this case, listing the files in the windows and windows\system directories.

SOURCE
 
Status
Not open for further replies.
Top Bottom