Jump to content

Detect File in Use


Lee Bussy
 Share

Recommended Posts

I have a .wav file (I think it's .wav, working from memory) that will play on occasion. I would like to be able to determine via scripting if that file is in use. Something like:

while not file_in_use(filename)
     sleep(1000)
wend

... something like that. Possible? Ideas for implementation?

Link to comment
Share on other sites

I have a .wav file (I think it's .wav, working from memory) that will play on occasion. I would like to be able to determine via scripting if that file is in use. Something like:

while not file_in_use(filename)
     sleep(1000)
wend

... something like that. Possible? Ideas for implementation?

You can play a sound and let the script pause until the sound has ended with the following command.

SoundPlay ( "filename" , 1 )

Is this what you mean?

Go to This site for my best product!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...