Jump to content

Deleting temp files placed via FileInstall


Recommended Posts

I have a script that I wanted to play a "goodbye" sound when exiting. I used FileInstall to copy the wav file to @TempDir. Being the neat freak that I am I want to delete the file after it is played. I used FileDelete at the end of my script to delete it but the file will not delete. Apparently, the script keeps the file in use so it cannot be deleted.

What is the proper way to use a file as a temporary file and delete it when done?

Thanks,

Derek

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