delete file after period of time

web sailor's Avatar, Join Date: Oct 2006
Newbie Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
web sailor's Avatar, Join Date: Oct 2006
Newbie Member
Quote:
Originally Posted by shabbir
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.
the file i will send like this Formula :

EXPT0016.dta

how i can encrypte this type of files?
0
rahulnaskar's Avatar, Join Date: Aug 2004
Go4Expert Member
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.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You can use any standard encryption formula like 3DES / MD5's ...
0
web sailor's Avatar, Join Date: Oct 2006
Newbie Member
Quote:
Originally Posted by rahulnaskar
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.
how to do that?

would you write a code of you concept
0
web sailor's Avatar, Join Date: Oct 2006
Newbie Member
Quote:
Originally Posted by shabbir
You can use any standard encryption formula like 3DES / MD5's ...
what is 3DES / MD5's?

any links or explanation?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
MD5 Tutorial, 3DES