| View previous topic :: View next topic |
| Author |
Message |
Venia Legendi
Joined: 27 May 2005 Posts: 35
|
Posted: Tue Dec 13, 2005 12:27 pm Post subject: Recurse VARs |
|
|
Hello,
unfortunately environment variables are allow in some registry keys, e.g.
| Code: |
regread FavOrdner, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Favorites
msgbox, "%FavOrdner%"
|
yields - in most cases - "%USERPROFILE%\Favorites", sometimes the complete path and - that the problem - sometimes "%IDONOTKNOWWHAT%\Path" or even "%NETWORKMAP2%%UserProf1%\Favorites" ...
Is there a way to parse this into a complete path - without knowing whether there's a environment var in the key or not.
Thanx |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Tue Dec 13, 2005 12:57 pm Post subject: |
|
|
| Try using Transform Deref to expand the variable references inside the string. |
|
| Back to top |
|
 |
Venia Legendi
Joined: 27 May 2005 Posts: 35
|
Posted: Tue Dec 13, 2005 3:27 pm Post subject: |
|
|
THANK YOU! Works fine, in for all instances.
Guido |
|
| Back to top |
|
 |
|