Harry MacDonald
Member²
I realize this is more of a "windows" question than PLSD, but there's some pretty clever people on this forum, so I figured I'd give it a go:
I'm trying to set a path in params.ini to each user's "home" directory for storing personal preferences. Problem is I can't find a way to combine %HOMEDRIVE% and %HOMEPATH% in the prefpath statement. Here are the current values returned (correctly) by querying the system variables directly for my own info:
C:\>ECHO %HOMEDRIVE%%HOMEPATH%\apps32\PLSQL Developer\Preferences
Result is
Y:\HM91405\apps32\PLSQL Developer\Preferences
Yet if i enter in params.ini as
prefpath=%HOMEDRIVE%%HOMEPATH%\apps32\PLSQL Developer\Preferences
then a new %HOMEPATH% directory is created in the application directory (which in this particular case is already on drive Y
instead of Y:\hm91405\ being used.
Any suggestions? I know I could use appdata, but I am trying to maintain the users' preferences directly on their personal network share, and that is not how appdata is managed in our environment.
Thanx,
HMD
I'm trying to set a path in params.ini to each user's "home" directory for storing personal preferences. Problem is I can't find a way to combine %HOMEDRIVE% and %HOMEPATH% in the prefpath statement. Here are the current values returned (correctly) by querying the system variables directly for my own info:
C:\>ECHO %HOMEDRIVE%%HOMEPATH%\apps32\PLSQL Developer\Preferences
Result is
Y:\HM91405\apps32\PLSQL Developer\Preferences
Yet if i enter in params.ini as
prefpath=%HOMEDRIVE%%HOMEPATH%\apps32\PLSQL Developer\Preferences
then a new %HOMEPATH% directory is created in the application directory (which in this particular case is already on drive Y

Any suggestions? I know I could use appdata, but I am trying to maintain the users' preferences directly on their personal network share, and that is not how appdata is managed in our environment.
Thanx,
HMD