I am a user of Windows 8.

I frequently create and save document files to a folder with long path. Therefore I tried to create a environment variable for that folder MyFolder, to get fast access.

However it does not seem to work: inside Notepad++ or other editor, when I open "save as" and enter %MyFolder%, it does not navigate to the desired folder.

Is there a way to achieve such functionality?

Thank you very much.

SETX MyFolder <folder path>

Maybe logoff need, test at cmd:

cd %MyFolder%
  • 1
    No logoff required, but you do need to start a new command prompt to test with cd %myfolder%. Otherwise, just do start -> run -> %myfolder% immediately after running the setx command. – user387876 Feb 11 '15 at 20:35
  • This does not answer the question, which asked how to access environment variables in Windows Explorer (not from the CLI). – Sensei James Oct 9 '19 at 22:09

These folders are now called "KnownFolders" and replacing the former CSIDL. But I don't know if there are any windows tools to create them directly, you have to write your own or find a 3rd Party tool.

KnownFolders https://msdn.microsoft.com/en-us/library/windows/desktop/bb776911(v=vs.85).aspx

CSIDL https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx

  • 1
    This answer would be more helpful if you explained the content from the links yourself. – Ramhound Feb 11 '15 at 16:03

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.