HI,
I have this piece of code that wait until a file is inside of a folder
"Do While present = False
present = file_in_folder(temppath)
DoEvents
Loop"
but I realize that in the mindtime the usage of the cpu is 100%.I don't experience any problem using other applications when this code is running, but that amount of cpu usage doesn't look right.
Any idea on how can i do the same task?
There is any way of acomplish this using API calls?
I have this piece of code that wait until a file is inside of a folder
"Do While present = False
present = file_in_folder(temppath)
DoEvents
Loop"
but I realize that in the mindtime the usage of the cpu is 100%.I don't experience any problem using other applications when this code is running, but that amount of cpu usage doesn't look right.
Any idea on how can i do the same task?
There is any way of acomplish this using API calls?