User Tag List

Results 1 to 6 of 6

Thread: delete "old" files automatically

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    delete "old" files automatically

    has anyone done a routine to delete files older than, say, 30 days old?

    if so, is anyone willing to share how they did it?

    I see a 'created date' in the file object actions, but I cannot seem to make the leap as to how I can zap the "stale" files


  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: delete "old" files automatically

    Could you be more specific to your reasoning? If the files are created by your app it may be easier to save a short form time stamp in the file name.

  3. #3
    No Products Registered

    Join Date
    Aug 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: delete "old" files automatically

    yeah,
    I am creating .txt files

    how would you implement what you are proposing?

  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: delete "old" files automatically

    Hi...

    It also depends on exactly how you define "old" files.

    Do you mean files created before a certain date, modified before a certain date or accessed before a certain date?

    Is there an option to delete files in MMF2? :S

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: delete "old" files automatically

    Use the file object, find files that you're interested in, compare the date of the file, and delete those older than your threshold.

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: delete "old" files automatically

    Every 24 Hours- add 1 to counter
    Counter = 30- Locate and delete .txt with FILE OBJECT

Similar Threads

  1. "Flash / INI object: now loads INI files stored as binary files in the application."
    By EdibleWare in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 2nd July 2014, 10:22 AM
  2. "Too many files in use by 16 bit programs" Error during install
    By TheDonald in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 29th July 2013, 07:06 PM
  3. "Locking" game files? +Unlocking from inside the app?
    By Tsun in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th January 2012, 10:09 AM
  4. Installing files to "My documents" of all users
    By PeterT in forum Install Creator and Patch Maker
    Replies: 8
    Last Post: 8th March 2011, 02:44 PM
  5. ".dll" files and ".ox" ActiveX Control install
    By himan in forum Install Creator and Patch Maker
    Replies: 5
    Last Post: 3rd April 2008, 02:49 PM

Posting Permissions

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