Hello,

First of all, I would like to thank you in advance for any help or ideas you may have for me. Criticism is welcome too! If you are wondering why in the world I am even trying to do it this way, please tell me. THANKS! \:D

Using KiXtart 2010 4.51

My goal is to have all my servers defined as GLOBALS to save from editing server names across many scripts when the server name changes. I defined my GLOBALS:
 Code:
;filename servers.kix
GLOBAL $Carlisle, $NYC, $Boston, $BLoomfield
$Carlisle = Gettysburg
$NYC = Manhattan
$Boston = Capecod
$Bloomfield = Pinelands
RETURN


The server names are carried through all the scripts until I try to start a second KiXtart session in the existing session.

Script A needs to run as the user logging on.
Script B needs to run as an administrator.

 Code:
;filename - Script-A.kix
CALL servers.kix
;the value of Carlisle is written to the log file as expected
Open (1, "c:\kix\test.log", 5)
	writeline (1, "value of Carlisle = " + $carlisle + Chr(13) + Chr(10) )
Close (1)  
;high-kix.exe is a file that runs kix32.exe as an administrator
Shell @LDRIVE + "\high-kix.exe Script-B.kix"



 Code:
;filename - Script-B.kix
;CALL servers.kix ; I tried CALLing servers.kix here, but no luck
;$Boston = Capecod ;the value of boston is not written to the log unless I define the variable in script B
Open (1, "c:\kix\test.log", 5)
	writeline (1, "value of BOSTON = " + $boston + Chr(13) + Chr(10) )
Close (1)  
RETURN


Thanks for taking a look!

Turkey77