Combine %HOMEDRIVE% and %HOMEPATH% in the prefpath statement?

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
 
This cannot be accomplished thru Params.ini, but I have added environment variable translation for params.ini to the list of enhancement requests.

The only way to accomplish this is to use the prefpath command-line parameter. In that case Windows will do the translation.
 
Back
Top