Julia,
I'm not extremely fluent in Kix, but I think I can give you some help.
For the time, I think you need quotes: SETTIME "\\obc4"
If you want to use xcopy, I think it might look something like this:
Shell "%comspec% /c xcopy what where"
This line is a typo:
%Windir%\systemkix32.exe %0\..\logon.kix
and if you're trying to run another kix script, I believe you can use the "call" command:
call "%0\..\logon.kix"
I don't think you need the "/PERSISTENT" at the end of your USE */delete command.
And lastly, the documentation claims that AddPrinterConnection "is available only on Windows NT family"
Once again, since I am not that fluent in kix, don't be surprised if my advice doesn't work. But there are many other smart kixtarters on this board that will be able to help you. (Although, they might want you to put your code between the code tags)
_________________________
Eric