Hello all,

I realize there are a number of ways to skin a kix script ;), but I was hoping for a general Logic gut check on a project I'm working on.

The script is using "ComputerinGroup" as a Udf - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=195717

What I'm attempting to do is:

- Determine if the computer running the script is in a domain security group.
- Determine if a file exists on the computer.
- If the computer is in the domain security group, and the file doesn't exist, run a CMD script and then wait for the file to exist.
- The called CMD script will create a file on the computer once it completes that should be the trigger kix is waiting for to continue processing.
- If the computer runs the script, change the reboot flag to 1, so that the comp will be rebooted at script's end.



 Code:
;
CALL '\\Networkserver\Networkshare\ComputerinGroup.udf'
;
$Access2k10 = '\\Networkserver\Networkshare\O2k10-Access.cmd'
$A2k10Check = Exist("c:\scripts\Installed\A2k10.txt")
$MessageHeader = ' Software is being installed to your computer ' 
$Reboot = 0
;
If ComputerinGroup ("Access2k10") AND $A2k10Check = 0 
	MessageBox ("$MessageHeader","               Access 2010 is being installed / upgraded...               ",0,30)
	$Reboot = 1
	RUN $Access2k10
		DO
			Sleep 10
		Until $A2k10Check = 1
EndIf
;
If $Reboot = 1 
	Shutdown ("", "The upgrades performed on your computer require a reboot, that will occur in 20 seconds.", 20, 1, 1) 
Else 
Exit


This is not the full script as there are a number of other moving parts in it. But this is the general premise that I'm looking to accomplish with this particular section. What I'm unclear on most is if the Do / Until and the file existence checks make sense as they are currently. My first time looping...(that sounds a bit odd i know)

thanks for any advice,

Lan