Solved

Customizable Virtual Drive

Posted on 2003-11-13
11
354 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
Comment Utility
I think you need make a driver to solve the task.
0
 

Expert Comment

by:mece
Comment Utility
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
Comment Utility
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
 
LVL 6

Expert Comment

by:GloomyFriar
Comment Utility
What do you think about driver?
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

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

Accepted Solution

by:
GloomyFriar earned 250 total points
Comment Utility
0
 

Assisted Solution

by:Johnmyx
Johnmyx earned 250 total points
Comment Utility
0
 

Expert Comment

by:Johnmyx
Comment Utility
For example, how to use it.
0
 

Expert Comment

by:Johnmyx
Comment Utility
You can try Appcontrols. By Utilmind.

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

But isn't free...
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
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 process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

728 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

12 Experts available now in Live!

Get 1:1 Help Now