Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Getting the Network name of the Mapped Drive
Hi All,
Does anybody know on how to get the Network name of the mapped drive.
I have use the following coding:
objNetwork = createobject("WScript.Network")
? objNetwork.EnumNetworkDrives(1) && This will return the network name of the mapped drive.
My problem is, how I would supply the correct parameter on the EnumNetworkDrives() not to hard code the value? The value of the parameter will be dynamic such as 1, 2, and so... We cannot determine how many mapped drive available on each machine. Any idea or any different approach of solving it.
Thank you in advance
Rene
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement