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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect new file entering directory

Status
Not open for further replies.

Zipster

Programmer
Nov 13, 2000
107
0
0
GB
Hi,

I have a third party program which creates html documents and places them into a specific directory on one of our servers.

How do I create a VB app to listen to the directory for any new files with a positive number?

What I will then do is open the file and change certain aspects.

Thanks for any help in advance.
 
Use the FindFirstChangeNotification API. There are alot of examples on the Net. Alternatively you could use the Dir function in a Loop.

Rob
 
WRITE A PROGRAM THAT KEEPS POLLING (TESTING) THE DIRECTORY AND CHECKS FOR NEW FILES...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top