Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / November 2008



Tip: Looking for answers? Try searching our database.

Create a persistant Virtual Drive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 13 Nov 2008 22:31 GMT
I am working on a data storage application which will manager CD/DVD
changer (Jukebox).  The changer has two drives one of which will be
used to write data and the other will be used to handle read
requests.  Additionaly the changer has 200 slots in which to store
discs.  What I want to do is to present the changer as a drive on the
host PC.  This drive will need to be a virtual drive.  I would then
like to map each disc in the chager as a folder within the virtual
drive.  This virtual drive could then be shared and thereby make the
contents of the changer available to all on the network.

Writing to the discs will be done via IMAPI2 and I think I will be
able to figure that one out as there are many examples on MSDN.
However I can not seem to find a way to create a virtual drive mapped
(sort of) to the changer.  I am aware of the technique of using the
subst DOS command but that has a couple of problems.  The first
problem is that mappings made that way are not persistated.  When I
reboot the system the mapping is gone.  The second problem with this
technique is that it maps a folder to the virtual drive not a device.

Can anybody suggest a technique for creating this virtual drive mapped
to the changer?

Thanks,
Steve
Jim Mack - 14 Nov 2008 00:51 GMT
> Can anybody suggest a technique for creating this virtual drive
> mapped to the changer?

I have no idea if this is optimal, but if you can share the drive, NET
will let you create a persistent mapping to it:

NET USE X: \\server\share /persistent:yes

Nothing says that the share can't be on the same machine...

You can do this in code as well using the net API.

Signature

   Jim Mack
   MicroDexterity Inc
   www.microdexterity.com

Steve - 14 Nov 2008 01:25 GMT
> > 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.
Eugene Mayevski - 14 Nov 2008 07:32 GMT
Hello!
You wrote  on Thu, 13 Nov 2008 14:31:39 -0800 (PST):

S> Can anybody suggest a technique for creating this virtual drive mapped
S> to the changer?

Please check Callback File System ( http://www.eldos.com/cbfs/ ) which lets
you create virtual drives with whatever data you have. Mapper sample will
give you a tip regarding how to map the individual "real" disks to the
folders of the virtual disk.

With best regards,
Eugene Mayevski
http://www.eldos.com/ - security and virtual storage components
Steve - 15 Nov 2008 00:48 GMT
> Hello!
> You wrote  on Thu, 13 Nov 2008 14:31:39 -0800 (PST):
[quoted text clipped - 9 lines]
> With best regards,
> Eugene Mayevskihttp://www.eldos.com/- security and virtual storage components

That looks like exactly what I need...bit too pricey for me though.

thanks,
Steve
Eugene Mayevski - 15 Nov 2008 15:45 GMT
Hello!
You wrote  on Fri, 14 Nov 2008 16:48:38 -0800 (PST):

S> That looks like exactly what I need...bit too pricey for me though.

The product is very complex internally.
You are welcome to apply for a private business license on http://www.eldos.com/cbfs/price-list.php 
. If you are a small company or an individual developer, you will get a huge
discount.

With best regards,
Eugene Mayevski
http://www.eldos.com/ - security and virtual storage components
Steve - 15 Nov 2008 17:05 GMT
> Hello!
> You wrote  on Fri, 14 Nov 2008 16:48:38 -0800 (PST):
[quoted text clipped - 8 lines]
> With best regards,
> Eugene Mayevskihttp://www.eldos.com/- security and virtual storage components

Eugene,

As I say, your product does look like it would do what I need.
However I am developing an application whose sole purpose is a "proof
of concept" application for a project I am working on.  If I can make
this work (and thereby prove the concept) my employer would most
likely go with a canned package that provides all the required
functionality.  That said I am not totaly convinced there is such a
canned package so I may still wind up having to "roll my own".  I
would like it very much if we could take this conversation offline and
we could discuss the detaiks of my requirements and you could describe
how your product could meet those needs.  If you care to do this you
can email me at "s redmyer AT yahoo DOT com".  Obviously you will need
to remove the spaces and such to get a valid email address.

Thanks,
Steve
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.