KatZ,
What you need to do is a bit of testing to see where exactly it is failing. I don't know if you copyied and pasted that snippet of code directly or if you retyped it.

Throw together a small test script and include some verbose comments and/or run it with debug on so you can see where it is failing. Maybe the script never gets to the last IF or maybe the InGroup() is failing or possibly the USE is the problem.

code:
Break on
if ingroup("radonc")
"InGroup RADONC passed" ?
use "j:" "\\unmcrad\radonc-share"
@error+' ['+@SError+']' ?
endif

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.