Custom running command

Source: Internet
Author: User
Open the Registry Editor and expand the [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ app paths] branch in sequence. Below the "app paths" primary key, we can see many names named ". EXE, click a primary key to view its string on the right, where the "path" string is the path of the program. It is precisely because of these primary keys that we can easily start a program in the "run" dialog box. With this principle, we can freely add convenient startup methods for other programs.

Take QQ as an example: we want to add a convenient start method for QQ. The installation path is D: \ Program Files \ Tencent \ qq.exe. Create a new subkey named "cmdqq.exe" under "app paths.exe" (it cannot be the same as an existing name), and set the "path" string to "D: \ Program Files \ Tencent \ qq.exe" in the right window. Exit Registry Editor. In the "run" dialog box, enter "QQ" and press enter to start QQ!

Tip: in fact, we can add shortcuts for any file. Windows will automatically call the corresponding program to open the file. The method to add is the same as the above. Enter the startup path of the program in the "path" string. Note that the new secondary primary key name must have an extension, such as EXE and TXT. If you use the EXE extension, you only need to enter the name in the "run" dialog box. If you use another extension, you must enter the name + extension to start. To start the corresponding file. If it is a. BAT file, we can first create a program shortcut, the Primary Key Path points to this shortcut, take Tomcat as an example:

Primary Key tom.exe

Path c: \ Program Files \ tomcat5.5.26 \ bin \ Tom

The Tom at the end of the path is the created shortcut name.

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.