Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to delete database

Status
Not open for further replies.

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)
 
Why not using a .VBS playing with WScript.Sleep instead of a .BAT ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
That sounds interesting, can you point me to a website or thread with some help with this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top