Solved

Customizable Virtual Drive

Posted on 2003-11-13
11
357 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
  • 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
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 single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

830 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