• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Running Commands

Running Commands

Although many of the Windows Vista accessories provide more powerful and easier-to-use replacements for nearly all commands, a few commands still have no Windows Vista peer. These include the REN command, as well as the many Command Prompt–specific commands, such as CLS, DOSKEY, and PROMPT.

How you run a command depends on whether it’s an internal or external command, and on what you want Windows Vista to do after the command is finished. For an internal command, you have two choices: You can either enter the command in Command Prompt or include it as a parameter with CMD.EXE. As you saw earlier, you can run internal commands with CMD.EXE by specifying either the /C switch or the /K switch. If you use the /C switch, the command executes and then the Command Prompt session shuts down. This is fine if you’re running a command for which you don’t need to see the results. For example, if you want to redirect the contents of drive C’s root folder in the text file root.txt, entering the following command in the Run dialog box (for example) will do the job:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint