Hi,
It happens that a file is accessed by two applications for a little time ( < second) but then I get an error.
I could avoid that by seeing if the file is already used and then let the program wait for a little time (f.e. 1 second ) before trying again.
How to do ?
Something like this ?
dim good as boolean = false
do until good
' I have a sub for waiting some time(f.e. 1 second)
' now to see if the file is free then good = true (that is my question)
loop
' now accessing the file
Thanks for any resonse
It happens that a file is accessed by two applications for a little time ( < second) but then I get an error.
I could avoid that by seeing if the file is already used and then let the program wait for a little time (f.e. 1 second ) before trying again.
How to do ?
Something like this ?
dim good as boolean = false
do until good
' I have a sub for waiting some time(f.e. 1 second)
' now to see if the file is free then good = true (that is my question)
loop
' now accessing the file
Thanks for any resonse