labanTek
Instructor
- Dec 3, 2004
- 37
Hi good day I have an app that is done in access2002 and I installed it using a windows installer.When users quit the app using a command button I want the database to be automatically deleted from the users computer. I tried the following code to run a batch file but the database does not close off completely fast enough to be deleted by the batch file. Any suggestions? If I put the code after the quit command the code does not run. Please help.
'runs the batch file to delete database
Call Shell(Environ$("COMSPEC") & " /c c:\DeleteData.bat", vbNormalFocus)
'runs the batch file to delete database
Call Shell(Environ$("COMSPEC") & " /c c:\DeleteData.bat", vbNormalFocus)