Page 1 of 1 1
Topic Options
#175811 - 2007-04-30 02:00 PM systemdrive C:\ variable
markburse1 Offline
Lurker

Registered: 2007-04-30
Posts: 2
Hello,

Our Kix login script uses C:\ in many places....I need to change this to a variable that finds where the "%systemdrive%" is. Our C:\ on Citrix servers has been re-mapped to the K:\, and we only use one login script.

Mark

Top
#175812 - 2007-04-30 02:13 PM Re: systemdrive C:\ variable [Re: markburse1]
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
check out the results of the following script. Let us know if you have any other questions.
 Code:
break on

? ExpandEnvironmentVars(%systemdrive%)
? ExpandEnvironmentVars("%systemdrive%")
? "Just var = " + %systemdrive%
 
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#175813 - 2007-04-30 03:32 PM Re: systemdrive C:\ variable [Re: Howard Bullock]
markburse1 Offline
Lurker

Registered: 2007-04-30
Posts: 2
Thanks

Current line = if exist "c:\opra tools\gandalf\*.*" Goto GandalfUpdate

Example new line? = "%systemdrive%\opra tools\gandalf\*.*" Goto GandalfUpdate

Is there a way to test locally by running Kix on my pc without changing .BAT file?

Top
#175819 - 2007-04-30 04:51 PM Re: systemdrive C:\ variable [Re: markburse1]
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Unrelated suggestion: Try to restruction your code to avoid the use of GOTO.

Creat a test script on your computer saving it to some specified directory. Open a CMD window and change to that directory. Place Kix32.exe on your computer, possibly in this directory where your script resides.

Execute Kix32.exe test.kix

You will need to write the necessary checking or logging code to verify that the text script did what you wanted.


Edited by Howard Bullock (2007-04-30 04:52 PM)
_________________________
Home page: http://www.kixhelp.com/hb/

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 507 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.061 seconds in which 0.031 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