Search code examples
cwindowsfilesystemsfilesystemwatcher

Run a .exe file when a file is opened in a folder


I am mounting a folder as a virtual drive and i want to run a .exe file everytime user opens any file present in that folder. To be precise the folder would contain dummy files present on some other machine. By dummy files i mean the file would be listed but it would be a empty file. Whenever user opens a file i want the .exe program to download that file from another machine and display it to user.


Solution

  • That functionality (remote access on demand) can be implemented using reparse points and file system filters.