
Signature
Jim Mack
MicroDexterity Inc
www.microdexterity.com
> > Can anybody suggest a technique for creating this virtual drive
> > mapped to the changer?
[quoted text clipped - 12 lines]
> MicroDexterity Inc
> www.microdexterity.com
Will this work for a device? If so what would the syntax be. Also
what is the specific API for doing this?
Thanks,
Steve
Jim Mack - 14 Nov 2008 03:36 GMT
>>> Can anybody suggest a technique for creating this virtual drive
>>> mapped to the changer?
[quoted text clipped - 9 lines]
>
> Will this work for a device? If so what would the syntax be.
No idea. If it's a shareable resource, then maybe. I was reacting to
your mention of SUBST, for which NET USE is an analog. However, this
won't create a drive where none exists.
Nero, among others, allows you to create virtual CDs from disk files,
but this isn't quite a match for that either.
> Also what is the specific API for doing this?
The API equivalent of NET USE is WNetAddConnection2.

Signature
Jim Mack
MicroDexterity Inc
www.microdexterity.com
expvb - 15 Nov 2008 00:11 GMT
> Will this work for a device? If so what would the syntax be. Also
> what is the specific API for doing this?
Check this VB6 sample:
http://vbnet.mvps.org/code/network/wnetaddconnection2.htm
Also, check MSDN for DefineDosDevice() and SetVolumeMountPoint(). I have
never used them, so I don't know if they are suitable to your situation.
They require NT or Windows 2000 or above.
Another way is to use Shell() to run subst. Use "subst /?" to the list of
commands.