Is there a more direct way to the environmental variables GUI then...

  1. Right click 'My Computer' and select 'Properties'.
  2. Click 'Advanced System Settings' link.
  3. Click 'Advanced' tab.
  4. Click 'Environment Variables...' button.

Can I make a shortcut to it?

  • 2
    You can always use "set" (without the quotes) from a command prompt to display, set, or remove environment variables. It doesn't get any more direct than that. – joeqwerty Jan 18 '12 at 18:19
  • 2
    Using the set command will only alter the copy of the environment local to the current command shell. The environment variables in the GUI will hold for all new shells and environments. – Steve Hollasch Apr 11 '18 at 0:18

Starting with Vista, the panel can be displayed from the command line (cmd.exe) with a

rundll32 sysdm.cpl,EditEnvironmentVariables

from here

  • 1
    beautiful! down with the mouse! – chris Oct 6 '17 at 10:45
  • Even better: run it from PowerShell! – Nick Spreitzer Feb 7 '19 at 20:43
  • If you want to open the Windows Environment Variables dialog from a launcher application such as SlickRun, you can enter cmd as the command, and /c "start rundll32 sysdm.cpl,EditEnvironmentVariables" as the parameters. This will open cmd.exe, open the Environment Variables dialog, and immediately close the cmd.exe window that was just opened. I have this mapped to the env keyword in SlickRun, so I can quickly view Windows environment variables using the standard Unix env command. (And I have SlickRun run this as admin so I can edit system-level environment variables.) – Mark McClelland Jun 19 '19 at 18:58

I recommend this: Open "Run" prompt -> type "SystemPropertiesAdvanced". You will be on the Advanced tab of the System Properties window. From here it's easy. I feel this is an easier command to remember than the command prompt's and a good shortcut.


Win 7: Start menu -> in search bar, type "system variables" and enter, you will have the Advanced tab of the system properties window open.

Win 8 and later: Simply type the above in the search box in the task bar.

  • 1
    This required Admin access on a peer's computer. The accepted answer did not. – Mike Oct 10 '17 at 14:05
  • It should be the Accepted Answer. – Siraj Alam Mar 14 '18 at 4:20

Open notepad, copy below line and save it as "SysPropAdv.bat". Run on cmd prompt, It will open a system properties window.

start SystemPropertiesAdvanced.exe

  • that is also good but not the great to reached till environment variable . thanks – YouAreAwesome Mar 7 '17 at 18:35
  • 5
    or in a different way use -> window + r -> and type SystemPropertiesAdvanced.exe -> and just enter, making .bat and finding to file and double click may not be the efficient way. – YouAreAwesome Mar 7 '17 at 18:37

If you want to do it with administrators rights (to be able to edit the System Variables) :

  • from the "Run" command prompt, use:
powershell -command "&{start-process rundll32.exe sysdm.cpl,EditEnvironmentVariables -verb RunAs}
  • from the cmd shell, use:
start powershell -command "&{start-process rundll32.exe sysdm.cpl,EditEnvironmentVariables -verb RunAs}"
New contributor
ギョーム is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.