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

Line ending issue with Mercurial or Visual Studio -

R - Plot: How to format in 10-base scientific notation and put it text, mtex, title etc functions? -

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