delete file after period of time

Discussion in 'Visual Basic ( VB )' started by web sailor, Oct 26, 2006.

  1. web sailor

    web sailor New Member

    Joined:
    Oct 26, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hello every one

    How i can delete file after 7 days, i mean: i will send file to my friends and i want the VB file to delete it after 7 days.

    and during the 7 days they can't delete it or copy it ( if it's possible ).

    i'm using visual basic 6
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Probably you need to do it in a different way.

    Something like keep the file encrypted and can be view only through your app so that after 7 days your application does not work and whatever he does with the file it will not help.
     
  3. web sailor

    web sailor New Member

    Joined:
    Oct 26, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    the file i will send like this Formula :

    EXPT0016.dta

    how i can encrypte this type of files?
     
  4. rahulnaskar

    rahulnaskar New Member

    Joined:
    Aug 26, 2004
    Messages:
    25
    Likes Received:
    2
    Trophy Points:
    0
    It's pretty hard, if not impossible, to restrict copying in Win environment. To prevent deleting you can only mark it as read only.
    However if the file can be secured with Win API, which will be applicable per user. If that is possible you can give it a try.
    As for deletion, run a batch operation at a convenient place of your program to search for files and delete.
     
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You can use any standard encryption formula like 3DES / MD5's ...
     
  6. web sailor

    web sailor New Member

    Joined:
    Oct 26, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    how to do that?

    would you write a code of you concept
     
  7. web sailor

    web sailor New Member

    Joined:
    Oct 26, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    what is 3DES / MD5's?

    any links or explanation?
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice