Batch Files
In DOS, OS/2, and also Microsoft Windows, batch file is the name given to a type of script file, a text file containing a series of commands to be executed by the command interpreter.
For making BATCH (.bat) files, we have to type commands on a single notepad. Say comm.bat here
Example (comm.bat)
dir pause date pause time pause
Output
E:\testDirectory>comm.bat E:\testDirectory>dir Volume in drive E is Softwares Volume Serial Number is A804-13D4 Directory of E:\testDirectory 02-Jun-14 01:10 PM <DIR> . 02-Jun-14 01:10 PM <DIR> .. 02-Jun-14 01:15 PM 37 comm.bat 1 File(s) 37 bytes 2 Dir(s) 30,733,975,552 bytes free E:\testDirectory>pause Press any key to continue . . . E:\testDirectory>date The current date is: 02-Jun-14 Enter the new date: (dd-mm-yy) E:\testDirectory>pause Press any key to continue . . . E:\testDirectory>time The current time is: 13:18:04.45 Enter the new time: E:\testDirectory>pause Press any key to continue . . . E:\testDirectory>