18th October 2008, 10:47 PM
Any Visual Basic 6.0 expert? Need some help on coding...
Hi anyone can help?
basically have to write a VB 6 code to detect file in a directory. After getting the files, it will delete it. The problem now is that I do a loop causing cpu to go up 100% usage. Is there a way to detect the files and uses less resources?
19th October 2008, 12:06 AM
Re: Any Visual Basic 6.0 expert? Need some help on coding...
My guess the loop is executing the codes all the time, that cause the 100% cpu usage. Try putting a pause timer in the loop, say 10 sec, so only after every 10 sec the codes will be executed. This should reduce the cpu usage greatly.
19th October 2008, 09:02 PM