Re: class to detect network drives by Anders
Anders
Mon Oct 25 21:53:07 CDT 2004
wsh=CREATEOBJECT('wscript.network')
FOR EACH o IN wsh.EnumNetworkDrives
? o
NEXT
FOR i= 0 TO wsh.EnumPrinterConnections.Count-1 STEP 2
? wsh.EnumPrinterConnections(i) ,wsh.EnumPrinterConnections(i+1)
NEXT
-Anders
"Yong Mallare" <YongMallare@discussions.microsoft.com> wrote in message
news:FD78B154-0550-4747-AF46-40A8DC0F9191@microsoft.com...
> is there such a thing as an object (a custom class) that i could drop in a
> form, ie MainForm, that would automatically detect all of the existing
netwok
> drives in a workstation? drives are defined, if the pc is the main server
or
> as a workstation throught the mapping done prior to loading of the main
form.
> pls explain if this idea is feasible or not? a million thanks...
>
> yong