Skip to content

Instantly share code, notes, and snippets.

@ScribbleGhost
Last active March 7, 2024 15:30
Show Gist options
  • Save ScribbleGhost/752ec213b57eef5f232053e04f9d0d54 to your computer and use it in GitHub Desktop.
Save ScribbleGhost/752ec213b57eef5f232053e04f9d0d54 to your computer and use it in GitHub Desktop.

Add EXE to PATH in Windows 10

Adding an executable file to Windows PATH means that you can use the EXE in CMD without having to type the whole path to the EXE every time. So for example you can type WinSCP instead of C:\Program Files (x86)\WinSCP\WinSCP.exe.

  • Click on Start and search for "environment"

  • Open "Edit the system environment variables"

https://i.imgur.com/1r9IU4S.png

  • Go to the "Advanced" tab and choose "Environment Variables"

https://i.imgur.com/T5t0tOM.png

  • In the bottom list you select the line that says "Path" and click on "Edit"

https://i.imgur.com/QVMn7NI.png

  • Add the path to your EXE but do not include the name of the EXE.

https://imgur.com/YvawVRc.png

@sabuein
Copy link

sabuein commented Mar 7, 2024

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment