Skip to content

Adding To Path

radj307 edited this page Nov 26, 2021 · 2 revisions

This allows you to call ARRCON.exe from anywhere you open a terminal, or from scripts, without having to specify the absolute filepath.
Note: If you already had a terminal open, you will have to close & re-open it to update its environment.

Windows

  1. Press Win+R to open the run dialog, then paste the following and press enter:
    rundll32.exe sysdm.cpl,EditEnvironmentVariables

  2. Under User variables for <USERNAME>, select Path, then click Edit... -> New & paste the path to the directory containing ARRCON.exe

    For example, if you placed the executable here: X:\bin\ARRCON.exe, you would put X:\bin on your path.

Linux

I'd recommend just placing the executable somewhere that is already on your path, such as /usr/local/bin as modifying the path permanently requires modifying the shell configuration files.
If you want to anyway:

  1. Choose whether you want all users to be able to use the program, or just your current user.
  • Current User:
    Use ~/.bashrc for <SHELL_CFG_FILE> in the command below.
  • All Users:
    Use /etc/environment or /etc/profile for <SHELL_CFG_FILE> in the command below.
  1. Use echo "export PATH="<RCON_PATH>:$PATH"" >> <SHELL_CFG_FILE>
    Make sure to swap <RCON_PATH> with the directory where the RCON program is located.
Clone this wiki locally