![]() ![]() You would rename it as myfile.bat to make it a batch file. For example, you write a file and save it as myfile.txt. In order to do create the batch file you simply type your sequence of commands on separate lines in Notepad and save the file as a text file. Since every version of Windows has a basic text editor called Notepad, it is convenient to use Notepad for creating and editing batch files. A batch file can be created using any text editor. Now that you know something about what a command is, let’s talk a little about the file itself. This is what happens when you type dir at the Windows XP Command Prompt. It is not as pretty as Windows Explorer, but it will do the job. ![]() You have just executed the command to list the contents of a folder which is also called a directory. Type dir and hit the Enter key on your keyboard. There will be a little flashing underline. When you do that, you should see a window with a black background (if no one has changed the color) and whitish or grayish lettering. You can find it on the Start Menu (under All Programs) in Accessories, or simply chose Run from the Start menu and type cmd.exe. If you are not familiar with MS-DOS and especially if you are using Windows XP where Microsoft has taken great pains to hide DOS from you, you are probably going to want to use the command line interface, also called the “Command Prompt”. You can also get more information at the Command Prompt in Windows XP by typing command /? or help command where “command” is the actual name of the command you are using, dir /? or help dir for example. earlier versions of DOS (see the article “New ways to do familiar tasks” in the Windows XP Help and Support Center ). Sometimes commands work differently in different versions of Windows. Remember that each version of DOS is somewhat different and has different commands available. You can learn about basic DOS commands using the results of this Google Search - Google Search MS-DOS. A batch command is just a special command that is used in a batch file. Just about any MS-DOS command that will work in your version of Windows will work in a batch file. What is a command? In this case, we are talking about MS-DOS commands and batch commands. One of the most common tasks people write their own batch files for is deleting temporary files. They are often used for tasks that will be repeated. Batch files are generally used for tasks that would otherwise require typing several separate commands at the DOS or Command Prompt. If what I just said was totally incomprehensible, that’s okay. Batch files are text files which contain a sequence of commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |