User Tag List

Results 1 to 3 of 3

Thread: How to save the contents of a folder(and subfldrs

  1. #1
    No Products Registered

    Join Date
    May 2007
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to save the contents of a folder(and subfldrs

    Just need to select a folder, and then push a button, and have the results be saved as a txt file.

    Similiar to the dos command "dir [directory] /s > filename.txt"

    I figured this is something that someone here knows how to do in about 2 seconds...

    Wish I could just have MMF execute this external file (("dir "+Edittext$( "selected path" )+" /s > "+Apppath$+Edittext$( "output file" ))
    , but I can only launch an app, the cmd prompt or a .bat file

    Guess I could have the app generate a bat file and then launch it, but I'd rather not have to go that route

    Thanks in advance!

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to save the contents of a folder(and subfldrs

    You could launch cmd with the /c parameter to make it run your command, like this:
    cmd /c "dir [directory] /s > filename.txt"

    (the "> filename.txt" syntax to save output to a file is a cmd.exe feature, so you need to run cmd to use it)

  3. #3
    No Products Registered

    Join Date
    May 2007
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to save the contents of a folder(and subfldrs

    Thanks for taking the time to reply to my post. I tried the "have the app generate a .bat file and the launch it" and it works like a charm!


    I wanted to make an app for someone who is non-techie to be able to generate lists of folders/files, I think this fits the bill...

Similar Threads

  1. How do I save my array in appdata windows folder?
    By Danilo_Dias in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th June 2012, 11:56 AM
  2. Load folder contents in List object
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th May 2012, 11:32 PM
  3. Folder attributes? Folder Size, created ETC?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th May 2009, 04:42 AM
  4. Help reading screen contents
    By lembi2001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 7th May 2009, 04:22 PM
  5. comparing the contents of two listboxes...?
    By ClickerGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th October 2007, 02:45 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
  •