Any Visual Basic 6.0 expert? Need some help on coding...


Status
Not open for further replies.

tokrot

Senior Member
Jun 2, 2003
1,344
0
36
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?

Thanks.. :embrass:
 

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.
 

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.

Thanks.. I found a code in the internet which detects changes in folder and did the job! Got it.. btw thanks for your reply too.. :D
 

Status
Not open for further replies.