Solved

Customizable Virtual Drive

Posted on 2003-11-13
11
358 Views
Last Modified: 2013-11-15
What I'm trying to do is to get a virtual drive (x:) to contain what I tell it to contain.

I imagine an array of TThisIsAFile or something like that, where a TThisIsAFile have attributes for date, size, name, etc. and when pressed/clicked/activated by double-clicking on the file on the x-drive, the application would 'present' the file to windows (might getting it via a network connection of having the file in the memory or getting it from another place on the harddrive).

I tried to look at a program subst (working like the dos program subst, mapping a directory to a drive) and the possibility of making symbolic links - but the symbolic links thing didn't give me the possibilities I needed, it wanted to have the file when making the link, instead of just making a call when the file is requested.
0
Comment
Question by:hald
[X]
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
  • 3
  • 3
  • 2
  • +1
11 Comments
 
LVL 6

Expert Comment

by:GloomyFriar
ID: 9738970
I think you need make a driver to solve the task.
0
 

Expert Comment

by:mece
ID: 9739791
try command propmt
for example

susbt x: "c:\driveimage"

or winapi
procedure TForm1.Button1Click(Sender: TObject);
begin
  WinExec('command.com /c subst x: "c:\driveimage"',sw_ShowNormal);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  WinExec('command.com /c subst x: /d',sw_ShowNormal);
end;
0
 

Author Comment

by:hald
ID: 9742020
Uhm...

About the command prompt and stuff, what's that supposed to help?

The whole question is about getting a call to my own program when a file is requested, so my program can find out if it should just hand over a file on the harddrive or fetch a file from somewhere (via LAN).

For instance my program decides that there should be three files shown on the X drive:

x:\online.txt
x:\fridge.txt
x:\weather.txt

Those three file "does not exist" as such.

But when a user doubleclicks the x:\weather.txt file, my program should get a request for a file - and my program would then decide to get the weather from some database, put it into a file - and then hand over that file.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 6

Expert Comment

by:GloomyFriar
ID: 9746432
What do you think about driver?
0
 

Author Comment

by:hald
ID: 9759833
Sounds great - but I still have no idea where to start.
0
 
LVL 6

Accepted Solution

by:
GloomyFriar earned 250 total points
ID: 9762984
0
 

Assisted Solution

by:Johnmyx
Johnmyx earned 250 total points
ID: 11352430
0
 

Expert Comment

by:Johnmyx
ID: 11352438
For example, how to use it.
0
 

Expert Comment

by:Johnmyx
ID: 11352441
You can try Appcontrols. By Utilmind.

http://www.appcontrols.com/diskcontrols.html

But isn't free...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Easiest way to make a bootable hd into a NON bootable hd 11 88
Microsoft Access 97 and Delphi XE2 9 85
Get weeknumber and year from date 4 56
Need a mirrored QA test site 2 91
How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

732 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