Results 1 to 3 of 3

Thread: Is it that tough that no one can answer it ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    4

    Is it that tough that no one can answer it ?

    Hi All,
    There is one challenging task in the application I'm making. Say there is a file(word) on desktop or any folder. Now I want to fire my exe or dll as soon as user selects to copy/delete by right clicking on that file.
    So I'm to stop the copy/deletion process & fire my application. If user satisfies my condition then only the copy/delete is to be allowed otherwise not.

    Plz help me out in this. Its very urgent.

    Regards,
    Ambrish Sharma
    Last edited by ambrishsharma; Feb 24th, 2004 at 07:40 AM.

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Can you use the FileSystemWatcher class to monitor the Recycle bin? If a new word document is detected in the bin your code can decide whether or not to restore it.

    Does this help?
    This world is not my home. I'm just passing through.

  3. #3
    Lively Member
    Join Date
    Apr 2003
    Posts
    114
    To intercept a file from being copied that a user has full rights to is difficult. You may have to write a low level application that looks at IRP and FastIO requests. Other avenues you may want to look at is modifying the context menu in explorer through the registry or subscribing to Windows Explorer Events somehow. You could also have your program running as a service or in the background and use the file system watcher so that as soon as the file is accessed you can lock down the file until your condition is met.
    I can do all things with VB.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width