Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   delete file after period of time (http://www.go4expert.com/forums/delete-file-period-time-t1724/)

web sailor 26Oct2006 09:44

delete file after period of time
 
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

shabbir 26Oct2006 10:24

Re: delete file after period of time
 
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.

web sailor 26Oct2006 10:27

Re: delete file after period of time
 
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?

rahulnaskar 26Oct2006 10:32

Re: delete file after period of time
 
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.

shabbir 26Oct2006 10:36

Re: delete file after period of time
 
You can use any standard encryption formula like 3DES / MD5's ...

web sailor 26Oct2006 10:42

Re: delete file after period of time
 
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

web sailor 26Oct2006 10:44

Re: delete file after period of time
 
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?

shabbir 26Oct2006 12:19

Re: delete file after period of time
 
MD5 Tutorial, 3DES


All times are GMT +5.5. The time now is 07:50.