Getting the file name which is being closed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deviparimala
    New Member
    • Jan 2007
    • 5

    Getting the file name which is being closed

    Hi,

    I need to know if there is any possiblity of tracking the name of the file which is currently being closed.

    The idea is that: My program will be running in the background. Once a user closes a file, i need to get the name of the file which the user has closed.
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Originally posted by deviparimala
    Hi,

    I need to know if there is any possiblity of tracking the name of the file which is currently being closed.

    The idea is that: My program will be running in the background. Once a user closes a file, i need to get the name of the file which the user has closed.
    Hi there,

    Use <System.IO.File SystemWatcher>, you can monitor entire folder as well as individual file, hope it helps. Good luck & Take care.

    Comment

    • deviparimala
      New Member
      • Jan 2007
      • 5

      #3
      Hi,

      Thankx. But this works only when we are creating, deleting, making changes to a file. I need to display a message which states the name of the file that is being closed.


      Originally posted by sashi
      Hi there,

      Use <System.IO.File SystemWatcher>, you can monitor entire folder as well as individual file, hope it helps. Good luck & Take care.

      Comment

      Working...