Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: environment variables in windows registry


11 Oct 2013   #1

Windows 7 Ultimate x64
 
 
environment variables in windows registry

I have a game that normally saves everything to the same folder. I want to have a separate save folder for each windows 7 account. The game's save path is stored in the windows registry. It doesn't seem to accept environment variables in the save path. Is it the game, a syntax error or are environment variables in the registry not resolved at runtime?

default
Code:
Save Path   REG_SZ   C:\Program Files (x86)\Diablo II\Save\
working with absolute path
Code:
Save Path   REG_EXPAND_SZ   C:\Users\account\Saved Games\Diablo II
not working with env variable
Code:
Save Path   REG_EXPAND_SZ   %USERPROFILE%\Saved Games\Diablo II
Note: According to a post I found on superuser REG_SZ should be changed to REG_EXPAND_SZ when using env variables. Absolute paths work either way.

Thanks!

My System SpecsSystem Spec
.

Reply

 environment variables in windows registry




Thread Tools



Similar help and support threads for2: environment variables in windows registry
Thread Forum
Windows 7 Environment Variables List Performance & Maintenance
Solved What are Environment Variables in Computer? General Discussion
Solved accidentally deleted path in environment variables System Security
Java, Windows 7 & Environment Variables Software
Windows doesn't seem to keep my system environment variables Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:20 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33