Add a right-click command line prompt

Source: Internet
Author: User

If a user types CMD in Windows 2000 to open a CLI (command-line prompt), the CLI opens in the statements and settings subfolder for the currently logged-in user. this usually isn' t the most convenient place to start a CLI, however. login people need to open a CLI in an arbitrary folder, and wocould like to be able to do so without having to type a CD command to change into the folder. with long pathnames, this can be cumbersome and time-consuming.

Windows 2000 has a hidden way to allow an administrator to enable a right-click context menu option to launch a CLI from a particle folder. it can be created on a system after installation, or made part of a system image and rolled out as a standard feature.

To add a right-click CLI context menu option to a system, open the registry and create a subkey namedDoshereIn\ Hkey_classes_root \ directory \ shell. Rename the existing (default)REG_SZValueDOS & amp; prompt here(Note the & sign). inside this key, create a subkey calledCommandAnd edit its (default) value. Leave the name of the value as "(default)" but set the value:

% SystemRoot % \ system32 \ cmd.exe/K cd "% 1".

(Be sure to substitute the name of your system root (e.g. C :) For the % SystemRoot % parameter in the above statement .)

Do the same as above in \ hkey_classes_root \ drive \ shell. this will allow you to do the same thing for a drive icon as well as a folder; the two registry edits operate entirely independently of each other.

Serdar yegulphosphatase is the editor of the Windows 2000 Power Users newsletter. check out his windows 2000 blog for his latest advice and musings on the world of Windows network administrators-Please share your thoughts as well!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.