Discussion Locked

disconnecting a mapped drive

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi ,
I have a winnt4.0 platform, w/win95&98 clients. I have a logon script that the clients run. It maps a drive runs a command and disconnects the drive,(well it suppose to disconnect the drive). I have it as follows: net use l: ---It then runsa command I specify --- Which works fine.
I then have net use l: /delete --- Here is where it tells me -- That I have open files and do I want to continue this operation. [y] or [n]: Is there anyway to avoid this question from being asked. Maybe by using a switch in the logon script.. Any help would be appreciated. Thanks in advance..

5 replies

by bra-k

When your script finishes it is still sitting on drive I:. Add a line to change the drive letter to another drive (IE: C:\) and then run your disconnect command and this should release it without the error message. As long as you are sitting on thatdrive letter it will think you have files open.

Hope this helps
Bra-k

This discussion is closed to new replies.