User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Creating a folder

  1. #1
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating a folder

    I am creating a level editor, and I need all the files to stay in a folder, but I am having problems creating the folder using mmf2. I am using the file object, because I don't want to use 3rd party extensions to avoid copyrights.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

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

    Re: Creating a folder

    But what is your problem?

  3. #3
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    Oh, sorry. The file isn't there when I look, and I don't know why that would be. All the other events following the condition work, and the event that won't create a folder looks like this:

    Create folder: C:\Program files\ ETC.


    Shoot! Just it worked now, I had it spelled wrong somewhere, but it wasn't a folder, which is what I was expecting!

  4. #4
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    This is not a resolved problem, I think I made it sound that way. Is there an extention that will create folders during the game that doesn't require you to put their info in the game?

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

    Join Date
    Feb 2007
    Location
    Queensland, Australia
    Posts
    317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    I'd be pretty sure you can use Apppath$ if you want to create sub-directories.

    E.g. Create Folder Apppath$+"my sub folder name"

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2007
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    use the file object's directory action> create a directory
    (a directory is another name for folder)

    if you want the folder in the folder with your app just use the expression "myfoldername" in the expession -or appPath$+"myfolder" -or "".\myfolder

    you could specify a path as you indicated "C:\myfoldername\

    BUT to make a new folder inside of a new folder you must first create the containing folder

    I made an example file and posted it in the file archive...

    Dave

  7. #7
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    Cool, thanks!! the directory thing works!

  8. #8
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    Ok, I ran into another problem. I can't seem to get the file object to delete a folder. I think it might be because the folder is not empty, but I am not sure.

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    I'm finding the File object to be strangely perplexing as well

    I created an application which runs the following two conditions:

    -Create directory ".\folder"
    -Create directory ".\folder\subfolder"

    That works. Now, if I manually delete 'subfolder', when I next run the application it won't be recreated. Is that because the file object needs to actually create the folder itself in order to make a subdirectory within it, so if 'folder' already exists then it doesn't recreate it, and the whole process fails? For subfolder to be recreated I have to manually delete 'folder' as well. I can't get 'Change directory' to work, and I also can't use the delete directory function. The workaround I'm currently using is to create a batch file that contains:

    'rd /s /q folder'

    I then run this batch file using the Pipe object to delete the folder. Is it possible to directly access Windows functions such as rd (remove directory) and md (make directory) without making a batch file?

  10. #10
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a folder

    could you not use the file object to run C:\windows\system32\cmd then put the following into the expression editor for the command line switches?:

    " md folder path"
    or
    " rd folder path"

    the space is required or it wont actually work for some reason.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Empty Folder in AppData Folder
    By TJM in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 26th October 2012, 01:36 PM
  2. 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
  3. Creating Shortcut to destination folder
    By ronosh in forum Install Creator and Patch Maker
    Replies: 6
    Last Post: 4th February 2008, 11:15 AM
  4. Problem creating folder
    By LaraSoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st August 2007, 08:15 AM
  5. How to add Company folder before Game folder?
    By Neonotso in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th February 2007, 10:02 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
  •