#190400 - 2008-10-30 01:57 PM
Registry Entry
|
Marc_Jacobs
Just in Town
Registered: 2008-10-30
Posts: 4
|
I have searched all over these forums and the internet to find and answer but have turned up nothing. I am trying to include a registry entry in my logon script. No problem, right? The registry entry is for a license server for a piece of software we run. When I put @licsrv01; in the registry for the entry, it works. When I put that in the kix script and check the registry, it comes up as <unidentified licsrv01;. For some reason the @ symbol comes up as unidentified. I have tried the following:
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\", "ADSKFLEX_LICENSE_FILE", "@licsrv01;", "REG_SZ") WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\", "ADSKFLEX_LICENSE_FILE", "'@licsrv01;'", "REG_SZ")<--Double quotes with single quotes inside WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\", "ADSKFLEX_LICENSE_FILE", "licsrv01;", "REG_SZ") WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\", "ADSKFLEX_LICENSE_FILE", "licsrv01", "REG_SZ")
Does anyone know how I can get the @ symbol to be inserted before the license server name? Thanks in advance for any help.
|
Top
|
|
|
|
#190402 - 2008-10-30 02:27 PM
Re: Registry Entry
[Re: Marc_Jacobs]
|
eriqjaffe
Hey THIS is FUN
Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
|
Or you can add the following to the beginning of your script:
$ = SetOption("NoMacrosInStrings","ON") That will ensure that any @ symbols inside a string won't be parsed as macros.
Edited by eriqjaffe (2008-10-30 02:28 PM)
|
Top
|
|
|
|
#190404 - 2008-10-30 02:31 PM
Re: Registry Entry
[Re: Marc_Jacobs]
|
BradV
Seasoned Scripter
Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
|
Note: The characters @, %, or $ are normally used to indicate macros, environment strings, or variables. If you want to use these characters in a string, use @@, %%, or $$.
Hope that helps!
Regards,
Brad
Edited by BradV (2008-10-30 02:31 PM) Edit Reason: Man, everyone was faster than me!
|
Top
|
|
|
|
#190406 - 2008-10-30 04:06 PM
Re: Registry Entry
[Re: Glenn Barnas]
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
Hi Marc, Welcome to the Hive
Like Glenn said, “Resistance is Futile”
|
Top
|
|
|
|
#190414 - 2008-10-30 09:15 PM
Re: Registry Entry
[Re: Benny69]
|
Marc_Jacobs
Just in Town
Registered: 2008-10-30
Posts: 4
|
Y'all are all so smart! I tried both ways (NoMacros and @@) and they both worked. Are there any cons to using the @@? The reason I ask is because I have an @USERID to exclude someone from this update, so the @@ is easier. Thanks for the quick replies and getting me fixed up. I'm still new to the whole KixTart experience but I'm loving it.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 346 anonymous users online.
|
|
|