Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disconnecting Network drive
Message
 
À
15/07/1998 13:40:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00117701
Message ID:
00117961
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform