Page 87 - 500
P. 87

•  Click the Control-menu icon and choose Close from the Control
                            menu.
                            •  Double-click the Control-menu icon.
                            If  you  are  running  a  character-based  program  in  the  Command
                            Prompt  window,  you  should  use  the  program's  normal  exit
                            command to terminate the program before attempting to close the
                            window and end the Command Prompt session. However, if you
                            are sure that the program doesn't have any unsaved files, you can
                            safely and quickly close it using one of the last three methods in
                            the preceding list. A dialog box appears asking whether you really
                            want to terminate the program.

                             Starting Command Prompt at a Particular
                                                        Folder

                            You can add a nifty shortcut-menu command to the folder file type
                            that will allow you to right-click any folder in Windows Explorer
                            and start a Command Prompt session with that folder as the current
                            folder:
                            1.   In Notepad or another plain-text editor, create a file with the
                            following data:
                            Windows        Registry      Editor
                            Version5.00
                            [HKEY_CLASSES_ROOT\Folder\
                            shell \Crnd  Here]
                             @="Command  &Prompt  Here"
                            [HKEY_CLASSES_ROOT\Folder\shell\Crnd
                            Here\command]
                             @="cmd.exe  /k pushd %L"
                            2.  Save the file as Cmdhere.reg.
                            3.  Double-click  Cmdhere.reg  and  answer  the  confirmation
                            prompt.
                            These steps create the new registry values.

                            Cmd.exe vs. Command.com
                            Cmd.exe is Windows 2000's command processor. Command.com,
                            the 16-bit command processor of MS-DOS days, is still supported,
                            but  unless  you  have  a  legacy  application  that  requires  it,  you
                            should  stick  with  Cmd.exe.  You  can  run  external  MS-DOS
   82   83   84   85   86   87   88   89   90   91   92