Sign in to follow this  
Followers 0
Razor

Sleep until file exists

3 posts in this topic

#1 ·  Posted (edited)

I know this is a simple question, but I tried the following two ways and it doesn't seem to work:

Do

Sleep(5000)

Until FileExists("c:\whatever.txt")

While 0

FileExists("c:\whatever.txt")

Wend

Thanks!

Edited by Razor

Share this post


Link to post
Share on other sites



The Do...Until should work.

While 0 is false so it will fail.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0