[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Event for new file creation?

Is there an event that I can attach to that will fire when a new file is created in a particular directory? (win32 app)
0
jjacksn
Asked:
jjacksn
1 Solution
 
Timbo87Commented:
Yes there is. You can use the FileSystemWatcher class in the System.IO namespace and then create an event handler for the Created event.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOFileSystemWatcherClassTopic.asp
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now