I have run across the same problem...Execute exit(@@error) in a FunctionI am doing similar operation, reading drive mapping info from an INI, but instead of writing to a kix file, i create the kix code in a variable and run it using the EXECUTE command.
Bryce
------------------
kix.isorg.net