Discussion:
Redirect a file open action to another
(too old to reply)
Leon_Amirreza
2010-04-25 15:01:13 UTC
Permalink
I have a DVD in drive f: with these 2 files on it:
f:\p.exe
f:\data.txt
when I start the process p.exe it attempts to open the file data.txt.
Is there Anyway (any command or tool or whatever) that I redirect file open
action to another file on another drive without the process being noticed?
I tried mklink command line tool that comes with windows vista and 7 but it
cant make a junction or symbolic/hard link on a DVDROM!!
I am using windows 7 ultimate 64 bit.
Pegasus [MVP]
2010-04-25 15:35:43 UTC
Permalink
Post by Leon_Amirreza
f:\p.exe
f:\data.txt
when I start the process p.exe it attempts to open the file data.txt.
Is there Anyway (any command or tool or whatever) that I redirect file
open action to another file on another drive without the process being
noticed?
I tried mklink command line tool that comes with windows vista and 7 but
it cant make a junction or symbolic/hard link on a DVDROM!!
I am using windows 7 ultimate 64 bit.
When you double-click f:\p.exe then the file f:\p.exe will be loaded into
memory before being executed. If you want it do open a file other than the
one its programmer intended (f:\data.txt) then you would have to intercept
p.exe as it gets loaded into memory. Virus scanners do this routinely but I
doubt whether you want to go this type of trouble. It would require a lot of
programming.
Leon_Amirreza
2010-04-26 04:18:02 UTC
Permalink
Exaclty! AV programs do this!
Is there any tool or kit that does what I need or at least simplifies it?
Post by Pegasus [MVP]
Post by Leon_Amirreza
f:\p.exe
f:\data.txt
when I start the process p.exe it attempts to open the file data.txt.
Is there Anyway (any command or tool or whatever) that I redirect file
open action to another file on another drive without the process being
noticed?
I tried mklink command line tool that comes with windows vista and 7 but
it cant make a junction or symbolic/hard link on a DVDROM!!
I am using windows 7 ultimate 64 bit.
When you double-click f:\p.exe then the file f:\p.exe will be loaded into
memory before being executed. If you want it do open a file other than the
one its programmer intended (f:\data.txt) then you would have to intercept
p.exe as it gets loaded into memory. Virus scanners do this routinely but
I doubt whether you want to go this type of trouble. It would require a
lot of programming.
Loading...