Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Batch file to unmap/disconnect some drives.

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Batch file to unmap/disconnect some drives.
Reply
 
Thread Tools
Old 03-02-2009, 10:58   #1
funkyCable
THE FUNKIEST ON THE BOARD
 
Join Date: Aug 2005
Location: Canvey Island, Essex
Services: SERVICES FROM 26/08/05 TV XL services 2MB BROADBRAND UNLIMITED TALK PACKAGE V+ Service (Since 18
Posts: 1,195
funkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nice
Batch file to unmap/disconnect some drives.

Hi

I have a batch file that maps some networks drives and their folders. Anybody know how I can unmap/disconnect them using a batch file?

I'm using Win XP.
funkyCable is offline   Reply With Quote
Advertisement
Old 03-02-2009, 11:16   #2
Aragorn
Inactive
 
Aragorn's Avatar
 
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 60
Posts: 3,458
Aragorn has a nice shiny star
Aragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny star
Re: Batch file to unmap/disconnect some drives.

Stick "/Delete" at the end of each "Net Use" command in the batch file (no quotes!).
Aragorn is offline   Reply With Quote
Old 03-02-2009, 19:16   #3
SimpleSimon
cf.addict
 
Join Date: Feb 2006
Location: Peterborough
Age: 65
Services: VIP Package
Posts: 316
SimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud ofSimpleSimon has much to be proud of
Re: Batch file to unmap/disconnect some drives.

To clarify you use the following to disconnect

net use x: /delete

Where x is the drive letter of the mapped drive.

Simon
SimpleSimon is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:47.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum