Search code examples
shell-extensionsramdisk

Shell Extension - Virtual File Creation


I want to create a file that only resides in memory... In looking through some documentation I saw a recommendation to use a shell extension as a virtual file. Im not sure that is a workable solution but I would like to know

  1. Is it a good approach (or should I be using a ramdisk instead)
  2. Where is a good place to start to read up on it

Note: This is on the Windows platform


Solution

  • As I understand, you want your program to create a "file", which resides only in memory and that you can pass on to another external program (say, Microsoft Word).

    AFAIK this is not possible, short of a ramdrive. I'd suggest using a temporary folder. You will however have to come up with a strategy for deleting the file when it's not needed anymore.

    Added: On second though, you might want to check out Reparse points. I'm not familiar with them myself, and they will only work for NTFS formatted disks, but perhaps they can provide you with what you want. It will be a lot of coding though.