AutoHotkey Community

It is currently May 27th, 2012, 6:21 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Recurse VARs
PostPosted: December 13th, 2005, 1:27 pm 
Offline

Joined: May 27th, 2005, 4:14 pm
Posts: 35
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2005, 1:57 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Try using Transform Deref to expand the variable references inside the string.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2005, 4:27 pm 
Offline

Joined: May 27th, 2005, 4:14 pm
Posts: 35
THANK YOU! Works fine, in for all instances.

Guido


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], hd0202 and 57 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group