“Register” an .exe so you can run it from any command line in Windows

后端 未结 17 2616
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 02:38

How can you make a .exe file accessible from any location in the Windows command window? Is there some registry entry that has to be entered?

17条回答
  •  旧时难觅i
    2020-11-28 03:16

    Windows 10, 8.1, 8

    Open start menu,

    1. Type Edit environment variables
    2. Open the option Edit the system environment variables
    3. Click Environment variables... button
    4. There you see two boxes, in System Variables box find path variable
    5. Click Edit
    6. a window pops up, click New
    7. Type the Directory path of your .exe or batch file ( Directory means exclude the file name from path)
    8. Click Ok on all open windows and restart your system restart the command prompt.

提交回复
热议问题