Page 1 of 1 1
Topic Options
#181911 - 2007-10-24 10:54 PM SET command and the @ character
kuwahard Offline
Fresh Scripter

Registered: 2005-09-09
Posts: 8
Hi!

I need to setup a environmental variable to point to a license server. So the variable should look like this:

LM_LICENSE_FILE 1700@sci-geo

So in KIX I put this in

set "LM_LICENSE_FILE=1700@sci-geo"

What I get is

LM_LICENSE_FILE 1700<unknown:sci-geo

I gather that kix or something doesn't like the "@" symbol. Anyway to get around this? I'm still looking through the boards and haven't looked in the script libraries yet, but thought I'd get this started.

Daniel.

Top
#181912 - 2007-10-24 11:19 PM Re: SET command and the @ character [Re: kuwahard]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You can double up the @ character. This way kix will leave it alone and set the environment var to the correct value.

@ is used for macro's in kix (@wksta, @crlf, etc…) so if kix32 or wkix32 finds and @ it expects a macro. The double @ solves that problem.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#181913 - 2007-10-24 11:23 PM Re: SET command and the @ character [Re: Mart]
kuwahard Offline
Fresh Scripter

Registered: 2005-09-09
Posts: 8
Woo hoo!! It Works! Thanks! Saved me lots of wear and tear on my shoes.

Daniel.


Edited by kuwahard (2007-10-24 11:23 PM)

Top
#181916 - 2007-10-25 01:18 AM Re: SET command and the @ character [Re: kuwahard]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Better would be to put something like
 Code:
;Script Options
Break On
Dim $SO
$SO=SETOPTION("Explicit", "ON")
$SO=SETOPTION("NoMacrosInStrings", "ON")
$SO=SETOPTION("NoVarsInStrings", "ON")

At top of your scripts, to avoid having to use double @-signs.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.067 seconds in which 0.039 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org