Skip to main content

Posts

Showing posts from September 6, 2009

Create batch files

In DOS , OS/2 , and Microsoft Windows , a batch file is a text file containing a series of commands intended to be executed by the command interpreter . When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe ) reads the file and executes its commands, normally line-by-line. Batch files are useful for running a sequence of executables automatically and are often used by system administrators to automate tedious processes. DOS batch files have the filename extension .bat . Batch files for other environments may have different extensions, e.g. .cmd or .bat in the Microsoft Windows NT -family of operating systems and OS/2, or .btm in 4DOS and related shells. The now-obsolete Windows 9x family of operating systems only recognize the .bat extension. How to create a .bat file: step1: Open the notepad either directly from run(type: notepad) or from program files>Accessories>Notepad step2: Type the required commands in that file e.g cd\ shutdown -s ex...