Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API To Disconnect Network Drive

Status
Not open for further replies.

Ed2020

Programmer
Nov 12, 2001
1,899
0
0
GB
A system I am in the process of developing has an API call to map a drive to an FTP server.

Once the file transfers have completed I want to disconnect the drive again.

Does anyone have an API call that, when passed a drive letter, will disconnect the relevant drive mapping?

Many thanks,

Ed Metcalfe.

Please do not feed the trolls.....
 
Another way:
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.RemoveNetworkDrive "E:"
Set WshNetwork = Nothing

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top