Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnecting Network drive
Message
 
To
15/07/1998 13:40:13
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00117701
Message ID:
00117961
Views:
15
>Is it possible to disconnect a mapped network drive of
>client machine from another client by a programme?

Yes, from the windows subdirectory on 95, winnt (if that's where NT resides) on NT you would probably need to find out what drives are mapped first. run net use >c:\netuse.txt. This will send output to a text file on your c: drive called netuse.txt. You can parse that file and find out what drives are mapped then disconnect with net use x: /delete. For more syntax on the net use command go to a dos prompt and type net /? or net use /?.

John Harvey
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform