PDA

Click to See Complete Forum and Search --> : How to invoke a certain software file inside a directory each time a new file is crea


hajar88
Nov 14th, 2001, 12:46 PM
This is not a vb question.
How to invoke a certain software file inside a directory each time a new file is createdin the same directory automatically.
This is like a window event raised when a new file created in this directory that make other software file invoked.
Is this like a service in window 2000? Can any one help or give a hint to where to find help on this.
Can we do something like this without using visual basic or by setting some service inside setting or control panel?

Joacim Andersson
Nov 15th, 2001, 03:33 AM
There is no built in software in Win2K that will do this.
However writing such an application is pretty easy.
If you use VB.Net you can use the FileSystemWatcher class.
In VB6 you have to use the FindFirstChangeNotification and the FindNextChangeNotification API functions.

For more information about the FileSystemWatcher class read my post in the .NET Tip Thread (http://www.vbforums.com/showthread.php?s=&threadid=117048)

Best regards