User Tag List

Results 1 to 6 of 6

Thread: Delete all files with a particular extension

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delete all files with a particular extension

    Hi all,

    Is there a way to automatically delete all files with a particular file extension in a single folder?

    In other words, if I have a folder named "Test" and wanted to delete all the .wav files within it, how would I do this? I'd rather not have to tell MMF2 to delete each file individually, as there are hundreds.

    I tried using the File object, telling it to delete a file with "*.wav" as the file extension, but that didn't work. It seems as though the File object requires one file to be input at a time, unless I'm doing something wrong.

    Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete all files with a particular extension

    Hold on, I'll make an example...

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete all files with a particular extension

    You could run "del Test\*.wav" with the Console object.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete all files with a particular extension

    I guess Jamie beat me, but here's an example anyway (using a different method):

    Delete Files Example

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete all files with a particular extension

    Thanks to both of you, this helps A LOT!!! :-)

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete all files with a particular extension

    You can also use the File-Folder extension to do this kind of task (and it will allows you to handle the possible errors).

Similar Threads

  1. Delete my extension?
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 7th May 2010, 10:36 PM
  2. Delete Files Example
    By Jaffob in forum File Archive
    Replies: 0
    Last Post: 2nd June 2009, 10:39 PM
  3. How do i delete music files?
    By Thalamus in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th April 2008, 11:04 PM
  4. Delete files after install
    By SaIRoS in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 4th September 2006, 10:39 AM

Posting Permissions

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