Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Virtual Drive

Posted on 2002-03-31
2
246 Views
Last Modified: 2013-11-15
Hi,

How can I create a virtual Drive that is a map of a folder from my harddisk?

It's like creating a map network drive, but the folder is from my own computer. Please let me know how to do that with Delphi 5.0.

Thank you.
0
Comment
Question by:totok
2 Comments
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6908656
This is the easiest way I know of.

ShellExecute(0, 'OPEN','SUBST','P: C:\WINDOWS','', SW_HIDE);

Uses ShellAPI.


Hope this helps,

Stu.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 100 total points
ID: 6922550
There is an API for this purpose, it's called DefineDosDevice.

Regards, Madshi.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question