User Tag List

Results 1 to 5 of 5

Thread: How to get all files from selected folder in MMF2

  1. #1
    Clicker Fusion 2.5

    Join Date
    Oct 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get all files from selected folder in MMF2


    I'm trying to do something in MMF2 that I did in Visual basic.
    I can't get this to happen in MMF2.
    I don't want to use "Open File selecter", which is an option.
    Here's the exact code from VB that I'm trying to replicate

    'gets all files from selected folder.
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    ListBox1.Items.Clear()
    For Each foundFile As String In My.Computer.FileSystem.GetFiles(textbox1.Text)
    ListBox1.Items.Add(foundFile)
    Next

    All the files in the chosen folder go straight into the listbox
    automaticly.
    Is this possible in MMF2???

    End Sub

  2. #2
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get all files from selected folder in MMF2

    Yes

    Add the List object.

    Files --> Load Filelist --> "your path here"

  3. #3
    Clicker Fusion 2.5

    Join Date
    Oct 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get all files from selected folder in MMF2

    Yeh I know, that was the first thing I tried a week ago.
    Unbelievably, It dosn't work.
    Had to re-design whole program because I coudn't make it happen!
    I've just now had another go but still not going.
    Here's exactly what I just did.
    1.Start new, import list.
    2.Create start of frame condition.
    3.Create event Files --> Load Filelist --> "C:\Notetaker\"
    4.Run frame- and there's nothing in the list

    PS.
    I triple checked the spelling of folder-no errors
    The folder "C:\Notetaker\" EXISTS and has txt files in it.

    See what I mean! I'm really scratching my head here. I work with
    these list boxes all the time and the "Load listfile" and "Save listfile work great", no problems.
    But the "Load Filelist" dosn't work
    Get this:
    i tried "load directorylist" ---"C:\" all got nothing???

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get all files from selected folder in MMF2

    3.Create event Files --> Load Filelist --> "C:\Notetaker\"

    3.Create event Files --> Load Filelist --> "C:\Notetaker\*.*"

    There are also actions to load directory and drives. Keep that in mind.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Oct 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get all files from selected folder in MMF2

    "C:\Notetaker\*.*", this worked. Thanks for your help.

Similar Threads

  1. Using ini from Program Files Folder
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 24th August 2010, 11:08 PM
  2. Searching for files in a folder
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 4th August 2008, 01:37 PM
  3. Erase folder or files before Installing
    By XRayXI in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 15th June 2008, 08:58 PM
  4. How to get a list of files in a folder with FTP?
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 1st July 2007, 08:14 PM
  5. Selecting files from within a folder.
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th June 2007, 06:25 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
  •