Programmatically controlled virtual drive
Posted
by Robert Lin
on Stack Overflow
See other posts from Stack Overflow
or by Robert Lin
Published on 2008-12-09T01:19:21Z
Indexed on
2010/04/18
15:03 UTC
Read the original article
Hit count: 309
How would I go about creating a virtual drive with which I can programmatically and dynamically change the contents?
For instance, program A starts running and creates a virtual drive. When program B looks in the drive, it sees an error log and starts reading/processing it. In the middle of all this program A gets a signal from somewhere and decides to add to the log. I want program B to be unaware of the change and just keep on going. Program B should continue reading as if nothing happened. Program A would just report a rediculously large file size for the log and then fill it in as appropriate. Program A would fill the log with tags if program B tries to read past the last entry.
I know this is a weird request but there's really no other way to do this... I basically can't rewrite program B so I need to fool it.
How do I do this in windows? How about OSX?
© Stack Overflow or respective owner