-
Notifications
You must be signed in to change notification settings - Fork 34
Windows PATH
Operating systems have "global variables" just like Pawn scripts. One of these variables is called PATH
and is present on Windows, Linux and Mac. The purpose of this variable is to store a list of directory paths that contain "executable" files (.exe files on Windows). This allows a user to run any of the executable files that live in the directories in PATH
.
Here's my Path:
You can see C:\Windows\System32
is in PATH
and in that folder is notepad.exe
- hence, I can type notepad
into any PowerShell/Command Prompt window and notepad.exe will execute because it's contained within a directory that is present on PATH
.
This is how you execute sampctl. Scoop and the Installer do this automatically, but if you want to install manually for any reason, follow this guide.
Search for "Environment Variables" in the Start menu:
(Similar on Windows 7 or XP, but I don't have screenshots for those systems)
Click "Environment Variables" button at the bottom:
Locate the Path
variable in the User variables
section:
Click New
and enter C:\sampctl\
:
Done! "Ok" your way out of all the open settings windows.
If you have any PowerShell or Command Prompt windows already open, you will need to close them and re-open in order for the PATH
changes to take effect.