Can access delete intself?

  • Thread starter Thread starter KRR
  • Start date Start date
K

KRR

I'm distributing an access app to remote users. At the end of a project I
would like to find an way they can easily remove the .mde file from their
computers. Is there a way to do this from within my app?

Thanks,
Ken
 
No. As far as I know, there is no file that can delete itself. You can
delete everything except the form calling the code.
 
KRR said:
I'm distributing an access app to remote users. At the end of a project I
would like to find an way they can easily remove the .mde file from their
computers. Is there a way to do this from within my app?

Thanks,
Ken

As Arvin correctly points out, a file can't delete itself. However, you
certainly could just write a simple batch file to do this.

For calling the batch from the file to be deleted could be doable but
not as robust as I'd like it to be. You need it to be done
asynchronously, so that's a Shell command then immediately quitting and
the batch file can sleep for a certain period before proceeding with
deleting the file which by then should already had quit and thus is free
for deletion.
 
Are you distributing an "install" package? (in other words, how are you
"distributing an access app"?)

If so, could you distribute an "uninstall" package?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
Jeff Boyce said:
Are you distributing an "install" package? (in other words, how are you
"distributing an access app"?)

Actually those usually come with an uninstall menu item anyhow.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 
Back
Top