Solved

Customizable Virtual Drive

Posted on 2003-11-13
11
359 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
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…
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…

724 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