A
alex
Is there a way to program an mde to kill itself when it closes?
My application is setup so that a user uses a file that will copy an
mde to a specific location each and every time he/she wants to use the
application.
This works fine, but until the user wants to use the application
again, the mde just sits there taking up space.
I’d like the file to delete itself when it closes. I know you can use
the kill command to delete files; I’d like to code the file to do it
automatically when it closes.
The code would need to be in a module and not a form in case the user
did not use the form to close the mde (used the upper right X
instead).
It would also be nice if the file to check its location before the
kill occurred. Something like:
If file is in this location “C:\application_file\” Then
Kill “file”
Else
End If
Any thoughts?
Thanks,
alex
My application is setup so that a user uses a file that will copy an
mde to a specific location each and every time he/she wants to use the
application.
This works fine, but until the user wants to use the application
again, the mde just sits there taking up space.
I’d like the file to delete itself when it closes. I know you can use
the kill command to delete files; I’d like to code the file to do it
automatically when it closes.
The code would need to be in a module and not a form in case the user
did not use the form to close the mde (used the upper right X
instead).
It would also be nice if the file to check its location before the
kill occurred. Something like:
If file is in this location “C:\application_file\” Then
Kill “file”
Else
End If
Any thoughts?
Thanks,
alex