Solved

Customizable Virtual Drive

Posted on 2003-11-13
11
356 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
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…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

778 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