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

Running CMD

When you open a Command Prompt window, Windows starts the CMD.EXE program. CMD prompts for commands and executes them, until you close the window or type the exit command. You can also run CMD using the Start, Run command, and you can open additional Command Prompt windows from the command line or from batch files, if there's a need. To open a new window from the command prompt, type start cmd. You can alter CMD's behavior by specifying additional command-line arguments, as I'll discuss shortly.

Tip

A good time to open an additional Command Prompt window is when you need to perform privileged administrative tasks. You can open a Command Prompt window that has Administrator privileges by typing

runas /user:Administrator cmd 

on the command line or in the Start menu's Run dialog box. The new window will run under the Administrator logon name, and any programs you run from this command prompt will also have Administrator privileges. The only exception to this is that you can't run Explorer from this new window. Explorer is an odd program, and you can't have two copies running under two different accounts at the same time.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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