how to delete application.
Hi,
I have an application which will copies and mdb file into users local system and application will be closed..
ofter this they will perform some updations in that mdb file and they will close the mdb..
when ever they close the mdb..I want to delete that mdb...is it possible?? aither through Acceess or through vb...???
any help???
Re: how to delete application.
To delete a file you could use Kill...
Re: how to delete application.
thanx dee...for u r quick reply...
I know that kill will deletes a file....but...the problem is where do i have to use this....???
the exe application will be closed ofter copying the mdb...
and I have to delete the mdb when ever user closes it...
Re: how to delete application.
Try in the QueryUnload or Unload event of the main form in you app...
Re: how to delete application.
Quote:
Originally Posted by nagasrikanth
Hi,
I have an application which will copies and mdb file into users local system and application will be closed..
ofter this they will perform some updations in that mdb file and they will close the mdb..
when ever they close the mdb..I want to delete that mdb...is it possible?? aither through Acceess or through vb...???
any help???
:confused: If you are just going to delete it anyway, when why:
a. are they making updates to something that is going to be deleted?
b. are you coping a file to someones local system for the sole purpose of deleting it from someones local system? :confused:
Re: how to delete application.
Hi hack..
Here is my answers for u r questions...
a)Yes,users will do some updations (they will be updated in the server using linked tables)
b)No,Iam copying the file to give them a previlage to update data into the server and ofter their updation whenever they will close..it should be vanished.. :(
Re: how to delete application.
Ok, so your application copies the MDB to a local system.
That being the case, your application should know where it copied it to, so deleting it shouldn't be a problem.
As dee-u said, if you place your delete code in the unload event of your main form, then when your application closes, it will delete the .mdb