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?
Save Path REG_SZ C:\Program Files (x86)\Diablo II\Save\
working with absolute path
Save Path REG_EXPAND_SZ C:\Users\account\Saved Games\Diablo II
not working with env variable
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.