Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Novell Map Network Drive Via Code
Message
De
01/07/2003 11:04:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00805445
Message ID:
00805711
Vues:
43
Hi Kevin,

I'm not sure what your question has to do with client server but under Windows you can use WSH MapNetworkDrive method to map Novell drives/directories. The third parameter controls if mapping is persistent after reboot.
oNet = CREATEOBJECT("Wscript.Network")
oNet.MapNetworkDrive("V:", "\\Server\Volume\dir", .F.)
>Does anyone know of a way you can map to a network drive using novell in coding including parameters such as ..."top most level", ..."when you restart windows"?


--------------------------------------------------------------------------------

--sb-- MVP VFP

A computer program will always do what you tell it to do, but rarely what you want to do.

sergeyb AT isgcom DOT com

_____________________________________________________________________________
Sergey,

This is exactly what I needed. I have seen you on here helping a lot of people. I hope everyone really appreciates what you do for them, I know I do. One thing I would like to note in case someone else notices this and wants to know how to do this as well, is that it seems it will error if you try to map a drive to a different location if it is already mapped elsewhere. When using the Wscript.Network class, my autofill showed me there was a oNet.RemoveNetoworkDrive("DRIVELETTER") as well, so I guess it would be advisible to do this first to make sure the drive is clear before trying to map it elsewhere. Also, I guess the reason I selected Client/Server as the subject is because I will be initiating the code from client computers to connect to a network drive on the server.

Thanks Again
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform