Results 1 to 7 of 7

Thread: how to delete application.

  1. #1

    Thread Starter
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Lightbulb 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???
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: how to delete application.

    To delete a file you could use Kill...

    VB Code:
    1. Kill 'filename'
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Lightbulb 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...
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: how to delete application.

    Try in the QueryUnload or Unload event of the main form in you app...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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???
    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?

  6. #6

    Thread Starter
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Lightbulb 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..
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width