Need to program a driver to emulate the "subst" command (= to make a virtual drive "x:\" out of a folder) AND if someone displays the contents of x:\ then all filenames should be shown lowercase.
Posted on 2006-07-09
((This question is for Windows XP and Delphi))
This is a pure academic task. I want to learn how to write my own driver and how to intercept the usual file handling/file listing.
So I don't actually care whether it is "lowercase" or "uppercase" or "all .pdf files are displayed as .exe".
I read already many of the other topics regarding "subst" and the following is NOT what I want:
* I don't want a delphi program that merely calls the 'subst' command (or the 'net' command) or merely changes the registry
* I don't want to write into an imagefile
I want something
1) that passes a command to Windows XP (e.g. a "file delete" should be passed to Windows XP, so that Windows XP can handle the "file delete" and thus delete the file on x:\)
2) that handles a command itself (e.g. "display folder contents" should not be handled by Windows XP, thus all files can be displayed lowercase)
Any ideas are highly appreciated. If a solution is not possible in Delphi, then a solution in C++ or VB is also welcome. But Delphi is preferred,