Tuesday, 5 October 2021

Windows .exe consle application

https://stackoverflow.com/questions/13681609/ive-downloaded-an-exe-file-but-it-closes-quickly-as-it-opens 

https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/



some .exe is GUI application in windows, such that when you click, a GUI window will be opened for you to do things.



Some .exe such as nuget.exe are console application, such that when PATH of them has been set correctly, in powershell or commandline tool, u can directly type the command such as NuGet to trigger them


To set PATH correctly, need to 

  • Open the Start Search, type in “env”, and choose “Edit the system environment variables”:
  • Click the “Environment Variables…” button.
  • Under the “System Variables” section (the lower half), find the row with “Path” in the first column, and click edit.
  • The “Edit environment variable” UI will appear. Here, you can click “New” and type in the new path you want to add. From this screen you can also edit or reorder them. (For example the path to nuget.exe)

No comments:

Post a Comment