How to duplicate IRP?

Hi,All.
I want to hook course of explorer copy a file, that is if the file which I pointed will be copy, I need hook those IRPs and backup the file whit different name.

Anyone tell me how to do this?

You cannot distinguish Explorer’s copy from any other file operation (Word
opening a file or so) at FSD level.

Write a shell extension instead.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hi,All.
> I want to hook course of explorer copy a file, that is if the file which I
pointed will be copy, I need hook those IRPs and backup the file whit different
name.
>
> Anyone tell me how to do this?
>

my idea is:
when Explorer copy/cut a file named “c:\abc.file”, whatever the new location Explorer had given, I’ll backup “c:\abc.file” to my location when Explorer’s paste action performed;

xxxxx@gmail.com wrote:

my idea is: when Explorer copy/cut a file named “c:\abc.file”,
whatever the new location Explorer had given, I’ll backup
“c:\abc.file” to my location when Explorer’s paste action performed;

The first answer you got was correct. This cannot be done at the FSD level.

Tony

but how to do?

Any suggestion from your side will be greatly appreciated.

If you just want copy from the windows explorer, the suggestion made by Max
is the correct one use a shell extension, check out
http://www.oneysoft.com/xwiz.htm for a Visual Studio wizard that can help.
If you want something more general, you are out of luck, since the copy
operation is composed of many steps.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntfsd…
> Any suggestion from your side will be greatly appreciated.
>