Dear gregb,
We advise you to try following code.
Before running shell command we create first the command string.
code:
IF (len(@ldrive) <> 0)
IF (Substr(@ldrive,len(@ldrive),1) = "\")
$cmd=@ldrive+"createprf.exe "+$fullname+" -Mailbox=emailserver\"+@userid+" -default"
ELSE
$cmd=@ldrive+"\createprf.exe "+$fullname+" -Mailbox=emailserver\"+@userid+" -default"
ENDIF
ELSE
$cmd="c:\createprf.exe "+$fullname+" -Mailbox=emailserver\"+@userid+" -default"
? "warning KIX-ldrive: empty value."
ENDIF
? "command to execute: "+$cmd
;
SHELL '%comspec% /c '+$cmd
IF (@error <> 0)
? "Warning KIX: error @error (@serror)"
ENDIF
possible problems are
- @ldrive doesn't return a value.
- @ldrive returns f.e. "c:\" instead of "c:"
Please return the output to the board.
greetings.
[ 09 July 2002, 07:51: Message edited by: MCA ]