|
I am creating a script that will map drives for my users. Problem exists when I have to use a macro in the INI file and in the script trying pipe the result to a variable. It interprets the result has a string, which is understandable. I need to find out how to get Kixtart to recognize macro embedded in the string.
Sample Code:
$GrpName = readprofilestring ("@lserver\netlogon\kix\ini\groups.ini", 3, "group") $DrvLtr = readprofilestring ("@lserver\netlogon\kix\ini\groups.ini", 3, "drive") $Share = readprofilestring ("@lserver\netlogon\kix\ini\groups.ini", 3, "share")
at (13,5) "Executing:" If ingroup("$GrpName") at (13,20) "Mapping $DrvLtr to $Share" Messagebox ($Share,"Show Share",) use $DrvLtr /delete use $DrvLtr $Share sleep 2 endif
Sample of the INI file:
[3] Group="network group" Drive=W: Share=\\is\netdata\users\@userid\lnotes
Thanks in advance for any assistance.
|