How can I start the Startup Program through command lines in windows?

Source: Internet
Author: User
1. How can I start windows with a command line?Program

For example, start the Text Editor:

Enter notepad directly on the command line.

To enable other installers as well, do the following:

1. Add the installation directory of the program to the environment variable.

F: \ beyond compare added to the PATH environment variable

Every program needs this operation, which is very troublesome.

2. Create a directory: F: \ link \

Add the shortcut of the application to this directory: Any name can be used.

Then add the directory to the environment variable path.

; F: \ Link

You can use the win + r key and enter word. lnk to start

Or enter word. lnk in command line cmd to start

. Lnk is the suffix of each application shortcut

 

2. Start the application using powershell

Powershell is different from the environment variables used by CMD. To start some applications in powershell, you need to add the environment variables to them:

Use $ ENV: Path to view environment variables;

Use $ ENV: Path = $ ENV: path + "; F:/Link" to add environment variables.

PowercmdIt can also be used directly;

 

 

Related Article

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.