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

File Creation Hook? 2

Status
Not open for further replies.

DugsDMan

Programmer
Mar 19, 2002
85
US
Hello All!

I'm trying to figure out the best way to execute a program upon any file being placed inside a network folder. We have TechScheduler, with which I can do 1 of 2 things. I can schedule a program to run every # minutes/seconds/whatever or I can just have a program that constantly checks for any files in the folder, sleep for a bit, check again, etc. If this program abends, TS can start it up again, making sure it is always running. Niether of these sound like the right way to do it though. Can't I use VB to "listen" for file creation using some SystemObjects or something? I would think I could establish a hook to the server (running Win2000) and find out when a file is created then.

Does anyone have any ideas on this??

Thanks!
 
Check out the info and links supplied by the FindFirstChangeNotification API in the MSDN. I think it'll supply you with enough information to do what you want.

Greetings,
Rick
 
Thanks a lot Rick - I wanted to create a little monitoring prog myself which would check for "sabotage" acts...
XLNt!

Andreas Galambos
EDP / Technical Support Specialist
Bowne Global Solutions Wuppertal, Germany
(andreas.galambos@bowneglobal.de)
HP:
 
Ah, I knew there was one out there, I just didn't know the name.

I will gladly give you a star on Tuesday for a code tip today!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top