thnx, I tried it. When you use in dos: NET USE Z: \\pc\share /persistent:yes and then NET USE * /delete then it delete's the drive eitherway.

But if I use it in kix like:

USE Z: "\\pc\share" /persistent
USE "*" /delete
then it works, BUT there comes a red cross on the Z drive, but it is still there mapped.So now im gonna try if the red cross gives problems with the running applications...cause when you click the drive there is no problem and the red cross disappears.... thnx again