C++/C Best way to detect when a folder contents changed and send the files that do via HTTP -


what's best way scan folder , notified when new file has been created. i'm using windows xp , need solution in c++ or c. need send files via http server.

wondering best solution this? open using third party library.

thank help.

use findfirstchangenotification function file_notify_change_file_name last argument.

it return handler need observe waitforsingleobject. second function wait specified amound of time or notification handler.

if break manualy, use msgwaitformultipleobjects instead , provide 2 handles: first handle 1 findfirstchangenotification, , second can handler own event (use createevent create it) can trigger setevent(handle_you_get_from_createevent)


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -