Solved

Virtual Drive

Posted on 2002-03-31
2
241 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
Comment Utility
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
Comment Utility
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)

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
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…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now