Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSystemWatcher

Status
Not open for further replies.

toon10

Programmer
Mar 26, 2004
303
DE
Does anyone know how to use the FileSystemWatcher?

I want to watch a folder on the network. If a named text file gets copied into the folder, I want to automatically run an import function I have written and then after the import has completed, copy the text file into another folder to clear it out the watched folder.

 
From the MSDN help
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref8/html/P_System_IO_FileSystemWatcher_Path.htm

HTH
 
I've seen this page before but unfortunately, it doesn't tell me how to use the class and it doesn't like the line <PermissionSet(SecurityAction.Demand, Name:="FullTrust")> Private Shared Sub Run()

I'm very new to .NET
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top