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


Status
Not open for further replies.

tokrot

New Member
Jun 2, 2003
1,345
0
0
#1
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:
 

Jaycelim

New Member
Jul 15, 2006
249
0
0
Guillemard
#2
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.
 

tokrot

New Member
Jun 2, 2003
1,345
0
0
#3
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.
Top Bottom