Jump to content


Software


  • Please log in to reply
6 replies to this topic

#1 kerrymatthews405

kerrymatthews405
  • Guests

Posted 11 June 2009 - 06:16 AM

I want to be able to send documents to a flash drive and allow it to delete itself after 6 months. Is there a software similar to what I'm asking for.

[Moved from Ask for Help forum. ~jaco0646]

#2 animeaime

animeaime
  • Members
  • 1045 posts

Posted 11 June 2009 - 06:29 AM

I have some questions so I can better understand what you want.

1) Do you want the original file (on the computer) or the copy (on the flash drive) to be deleted after 6 months?

2) Must the file be deleted EXACTLY after six months, or is first run after 6 months acceptable?

3) Are the documents in a "raw form" (e.g. doc, txt, rtf, etc.), or a "wrapped form" (e.g. zip, rar, exe)?

#3 SKAN

SKAN
  • Administrators
  • 9063 posts

Posted 11 June 2009 - 06:33 AM

allow it to delete itself after 6 months


Files do not die of old age :roll:.. However, you may run a script periodically to delete the older files.

The following example parses the TEMP folder and deletes file exceeding 180 days ( since last modified )

ChkDt := A_Now
ChkDt += -180,Days
Loop %A_Temp%\*.*
 {
   File := A_LoopFileLongPath
   FileGetTime, FileDt, %File%
   If ( FileDt > ChkDt )
     FileDelete, %File%
 }


#4 alanofoz

alanofoz
  • Members
  • 26 posts

Posted 12 June 2009 - 03:06 AM

Congrats to animeaime for 1000 posts.

#5 animeaime

animeaime
  • Members
  • 1045 posts

Posted 12 June 2009 - 03:12 AM

Congrats to animeaime for 1000 posts.

Thanks :oops:

#6 jaco0646

jaco0646
  • Fellows
  • 3163 posts

Posted 12 June 2009 - 02:34 PM

Congrats to animeaime for 1000 posts.

Hear, hear! 8)

#7 pajenn

pajenn
  • Members
  • 384 posts

Posted 12 June 2009 - 07:04 PM

You can add an AUOTRUN.INF file to flash drives. I use them to add custom icons. For example, I have a 8GB Kingston memory stick with the following:

[AutoRun]
label=KING_8G
ICON=KING_8G.ICO

and an icon file. Makes it easy to pic out my flash drive from My Computer, however, some antivirus programs don't like them.

In any case, there's probably a way to make the autorun file run an executable file placed in the flash drive's root each time it's connected to a computer. If so, you could convert SKAN's script into an exe and use that. Of course if you plug your flash drive into a computer with the wrong time, you might lose all your data.