64

Is there a more direct way to the environmental variables GUI than the following?

  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?

4 Answers4

103

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

rundll32 sysdm.cpl,EditEnvironmentVariables

It is from here.

yrk
  • 2,627
12

I recommend this: Open the "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.

Windows 7: Start menu → in the search bar, type "system variables" and Enter. You will have the Advanced tab of the system properties window open.

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

Shiridish
  • 233
6

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

start SystemPropertiesAdvanced.exe

3

If you want to do it with an administrator's 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}"
    
kotchwane
  • 131