Results 1 to 3 of 3

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

  1. #1

    Talking 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?

    Thanks..

  2. #2
    Member
    Join Date
    Jul 2006
    Location
    Guillemard
    Posts
    249

    Default 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.

  3. #3

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

    Quote Originally Posted by Jaycelim View Post
    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..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •