i have a website that creates reports (pdf files). these are temporary files and need to be removed. i wrote an exe that loops infinetaly and erases temp files older then 15 minutes. the problem is that when my program is running, the cpu usage goes to 100% and the website almost goes to a hold.
please sugest other ways to erase temp files without killing the cpu.
i had 2 ideas:
1) check for old temp files only when a user logs in
2) write a batch file that calls the exe to remove temp files. i havent written batch files with loops in a long time and don't know how it will effect cpu usage.
thank you
2007-11-15
03:27:41
·
2 answers
·
asked by
svec7186
1
in
Computers & Internet
➔ Programming & Design
how do you run a scheduled task?
2007-11-15
03:35:45 ·
update #1