Re: Enumerate volumes on a server
- From: "Dilip Naik" <DilipCNaik@xxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 21:32:28 -0700
To enumreate volumes the server is offering or sharing via a NAS protocol, use NetShareEnum
To enumerate volumes attached to the server, use WMI. Use your favorite search web site and you should find plenty of WMI scripting examples. You will have to work a bit to tranlate the scripting examples into C or C++ code but its doable. This is better than inventing your own client/server protocol, installing your own agent and then having that agent locally enumerate the volumes
Dilip www.msftmvp.com
"JRB" <john@xxxxxxxxxxxxxxx> wrote in message news:7f545840-0384-4b0c-abe7-559edfc46cb0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks but I need to obtain the volumes within a program, hence I'm
after the relevant APIs to do this. I dont want to have to spawn
external programs then trawl through their output.
TIA, John
On Jun 27, 8:16 pm, "Edwin vMierlo [MVP]"
<EdwinvMie...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
on the command line "mountvol.exe"
will that get you what you want ?
"JRB" <j...@xxxxxxxxxxxxxxx> wrote in message
news:ef4acfeb-b6c2-49d3-885d-217e39e30a03@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> What is the recommended method for enumerating the volumes on a
> particular server? FindFirstVolume et al appear to work only on the
> local machine.
> TIA, John- Hide quoted text -
- Show quoted text -
.
- Prev by Date: Re: Enumerate volumes on a server
- Next by Date: Re: Copying permission to new replacement drive.
- Previous by thread: Re: Enumerate volumes on a server
- Next by thread: Re: Copying permission to new replacement drive.
- Index(es):
Relevant Pages
|