None the less, we stray from Gilbert's original problem, that the script bombs and exits. It would be nice to know what message comes up. Also, supposedly works OK in NT. Unless NT was installed to other than default path (WinNT), it shouldn't work there either.Must confess, I was shooting from the hip. I need to make sure brain is engaged before putting mouth (fingers) in gear! %systemroot% would only work from NT/2K. Win95 has no such variable. the nearest equivalent is %windir%. MurphyProofing is the part of programming I really hate. Having to anticipate waht may go wrong and coding for it.
Gilbert,
Spark up a CMD window and run your script from it. Any KIX message that may flash and disappear will stay in the CMD window. You could add a few print lines and pause with get $ to determine if it is really crashing on that line. Also, try running the script with the /d (debug) switch and step through the script.
Let us know how you make out.
[ 09 September 2001: Message edited by: LLigetfa ]