Centralize log clearing ,

Hello all.
Here is quesion remove log,
1) If i want to check folder "c:/log_file" every 24 hr. in localhost(server) from clients 'log file. how can i write c++ code automated check?
2) If size of "c:/log_file" over 50 MB ,How can i clear all files in this folder

Special Thank for good advise and support
OHTina
Last edited on
Topic archived. No new replies allowed.