I understand.. That is not the function, but the "function call".

Somewhere in your script is a
 Code:
Function SetDrive(list of args...)
 bunch of commands here...
EndFunction
Can you locate that section of code and post it here? The function "SetDrive"is not part of KiXtart, so must be defined in your script as a User Defined Function. Once you post that code, we can review it and determine if we can add an option "2" to disconnect.

Since you tell us that the USE * /Delete is disconnecting and not deleting, seeing the SetDrive function code will identify how your drives are being mapped.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D