Confused Amused Posted June 16, 2005 Share Posted June 16, 2005 Can you use system variables in a .reg file? I can't get %HOME% or %USERPROFILE% to work correctly....Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Hummingbird\Connectivity\9.00\Exceed]"UserDir"="\\\\SRVATD2\\HOME\\%USERPROFILE%\\Application Data\\Hummingbird\\Connectivity\\9.00\\Exceed\\" Link to comment Share on other sites More sharing options...
Yzöwl Posted June 16, 2005 Share Posted June 16, 2005 (edited) Yes, although I would suggest you change%USERPROFILE%\\Application Datato%APPDATA%Your only problem then is what data type you want to use.Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Hummingbird\Connectivity\9.00\Exceed]"UserDir"=;Either example 1 - REG_SZ"\\\\SRVATD2\\HOME\\%APPDATA%\\Hummingbird\\Connectivity\\9.00\\Exceed\\";Or example 2 - REG_EXPAND_SZhex(2)[colon]5c,5c,53,52,56,41,54,44,32,5c,48,4f,4d,45,5c,25,41,50,50,44,\[two spaces]41,54,41,25,5c,48,75,6d,6d,69,6e,67,62,69,72,64,5c,43,6f,6e,6e,65,63,74,69,\[two spaces]76,69,74,79,5c,39,2e,30,30,5c,45,78,63,65,65,64,5c,00For example 2, you will need to replace the [colon] and [two spaces], with the appropriate symbols, it should also be on three lines only, the first two both ending with a backslash. This is due to a major problem with the forum rendering of html code. Edited June 16, 2005 by Yzöwl Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now