DavDes
10-09-2004, 01:18 PM
Hi, on my (long) way to convert SUF6 to SUF7 script,
i don't undestand anymore how to use %Var%
Examples :
1) SUF6:Read from Registry(%AppPath% = HKEY_LOCAL_MACHINE\Software\%CompanyName%\%Product Name%\AppPath) works great
SUF7:sAppPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\%CompanyName%\\%ProductName%", "AppPath", true); doesn't work
2) how to compare a string to a %Var% ?
if sProcessName==%MyProcess% gives a syntax error
Any help welcome,
David
i don't undestand anymore how to use %Var%
Examples :
1) SUF6:Read from Registry(%AppPath% = HKEY_LOCAL_MACHINE\Software\%CompanyName%\%Product Name%\AppPath) works great
SUF7:sAppPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\%CompanyName%\\%ProductName%", "AppPath", true); doesn't work
2) how to compare a string to a %Var% ?
if sProcessName==%MyProcess% gives a syntax error
Any help welcome,
David