Created
July 5, 2025 02:29
-
-
Save tnhung2011/746fa18a85fb0dbd60aa964c01a52293 to your computer and use it in GitHub Desktop.
Creates a shortcut for convenient access to environment variables (could be placed in `Start Menu` folder)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set h = WScript.CreateObject("WScript.Shell") | |
Set oLink = h.CreateShortcut(".\Environment Variables.lnk") | |
oLink.TargetPath = "%SystemRoot%\System32\rundll32.exe" | |
oLink.Arguments = "sysdm.cpl,EditEnvironmentVariables" | |
oLink.IconLocation = "%SystemRoot%\System32\shell32.dll,104" | |
oLink.Save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment