Click here to Skip to main content
15,850,751 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to solve the problem - I need to run the application. And it does not have permission to write it to disk. Can I create a virtual file system that help me?
Posted
Updated 14-Nov-11 10:26am
v2
Comments
Sergey Alexandrovich Kryukov 14-Nov-11 14:54pm    
Why do you think virtual file system is the way to solve the problem?!!
--SA
JackDingler 14-Nov-11 15:32pm    
A virtual file system will not let you write to the disk, if you don't already have these priviledges.
If you were to write a virtual file system, it would have to exist in memory. When your application is closed, then all of your data will be erased.
A RAM disk would still be be subject to the the OS permission system.
Sergey Alexandrovich Kryukov 15-Nov-11 1:11am    
Exactly.
--SA

Why just the virtual file system? Create a whole operating system. It should recognize who is running and give you all the privileges. People like you, those who are even able to write a whole virtual file system, do not need such a stupid thing as security. Security is just for lamers, isn't it?

Cheers,
—SA
 
Share this answer
 
Comments
PrafullaVedante 15-Nov-11 1:03am    
SAKryukov, I think you have your stomach disturbed again. Go to toilet instead of throwing such arrogant Solutions.... Shame on you...
Sergey Alexandrovich Kryukov 15-Nov-11 1:09am    
Thank you for your note. I see you are extremely polite... :-)
--SA
You might be referring to a RAM disk, a portion of RAM which is treated by Windows as it if were a disk drive?

You tagged your question as C++ but it doesn't look like you're after code? Have a look here[^] for various tools that can make such a RAM disk.
Note that a RAM disk is obviously erased when you shut down the computer.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Nov-11 1:13am    
Sorry, this is irrelevant by the reason explained by JackDingler in his comment to the question. The real issue is permission. Permission is permission; no matter where the files are.

--SA
[no name] 15-Nov-11 2:18am    
You could be right, but restrictions on disk access and restrictions on writing to a virtual disk don't necesarily have to be the same.
Since he came up with the idea of making a virtual file system himself, I thought it might be useful/interesting to give information on how to do that.
Sergey Alexandrovich Kryukov 15-Nov-11 2:52am    
Oh yes, I admit it can be useful. And you also got a vote of 1! -- this is stupid. I voted 5.
--SA
[no name] 15-Nov-11 3:02am    
Thanks. :)
JackDingler 15-Nov-11 8:02am    
That's not a trivial task. People write books on such stuff.
I've written a couple of simple ones, and they weren't quick to put together and debug.
The root of the issue seems to be that Mast Avalons wants to save a persistent data on a system that he only has guest access to. The owner of the system doesn't want him writing data to it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900