|
Greetings all,
I have a batch file for which I need to set a temp variable similar to how it is done in our login script. For lack of better explaining, I'll try to show what I need to do.
In our Login script, we pull the following information that is set as an enviromental variable
$CITY=SUBSTR(@USERID,3,2) $SEGMENT=SUBSTR(@USERID,5,1) $PHONE=SUBSTR(@USERID,6,5) $HOMEDRV=$CITY+$SEGMENT+$PHONE
From a batch file, I need to temporarly set %homedrv% the same way but with a variable that I'll pass from the batch file to the kix script. If I was passing it to another batch file, I'd use this syntax
call batch.bat %variable%
In batch.bat, my variable is %1
For my Kix script, I was assuming I would pass it similar to this
call kix32 script.scr %variable%
What would I replace @USERID with to use that variable?
$CITY=SUBSTR(@USERID,3,2) $SEGMENT=SUBSTR(@USERID,5,1) $PHONE=SUBSTR(@USERID,6,5) $HOMEDRV=$CITY+$SEGMENT+$PHONE
Thanks in advance for any suggestions.
Best Regards,
UJS
|