English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2 answers

Maybe try to create batch file or VBS and run is as a scheduled task versus a continuous loop. Run is once per hour or so or if your site has alot of traffic and your resources are low run the script during non-peak hours, I.e. midnight or so.

2007-11-15 03:32:35 · answer #1 · answered by Slick 5 · 0 0

Temp record can continually be deleted. in the event that they are in use the abode windows won't enable the deletion. somewhat some the data are in C:windowstemp, others could be killed by potential of deleting the cyber web explorer cache and history under strategies.

2016-10-02 01:36:17 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers