strongd
asked on
Disconnecting network drive from command line
I am running NT 4.0, I have a batch file that
connects my network drives. I want to be able to disconnect them with another batch.
I am trying to use net use
here is what I am typing but I am getting an error:
net use V: \\mymachine\mydir /delete
This will not work keep getting an error, here is the error:
"A command was used with conflicting switches.
More help is available by typing NET HELPMSG 3510"
I just want to disconnect a network drive from the commandline. Thnaks
connects my network drives. I want to be able to disconnect them with another batch.
I am trying to use net use
here is what I am typing but I am getting an error:
net use V: \\mymachine\mydir /delete
This will not work keep getting an error, here is the error:
"A command was used with conflicting switches.
More help is available by typing NET HELPMSG 3510"
I just want to disconnect a network drive from the commandline. Thnaks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you have this Q twice, delete the other one
strongd,
I believe stevenlewis is correct, however I think you may need to put a colon after the drive letter like:
net use V: /d
By the way, why are you wanting to do this in the first place?
I believe stevenlewis is correct, however I think you may need to put a colon after the drive letter like:
net use V: /d
By the way, why are you wanting to do this in the first place?
You may want to add the /yes switch to make your batch file run without pausing for confirmation:
net use v: /delete /yes
net use v: /delete /yes
ASKER
Thanks ... It worked...
strongd Glad to help
Steve
Steve