User Tag List

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

Thread: copy directory

  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)

    copy directory

    I need to take one folder and move everything inside of it into another folder... regardless of the names of the files inside. How would I do this?

  2. #2
    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: copy directory

    The file object, while it can copy files, for some reason does not copy directories, which is a crucial part of the level builder I am working on. So I tried to zip the folder, so I could change the extension, copy it, change the extension back, and unzip both of them... but I couldn't get a file to zip with all of its contents... anyone else think of a way to copy an entire folder?

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    User Directory Packor extension, or the File-Folder object might do it better.
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2008
    Location
    Indonesia
    Posts
    694
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    I am working on a "Copy Whole Folder" examples. This example will show you how to copy one directory to another. Might upload it soon
    _LB method can be used too, but it will be a little tricky.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    Quote Originally Posted by Skeets
    So I tried to zip the folder, so I could change the extension, copy it, change the extension back, and unzip both of them...
    I have used this method, and it works well.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  6. #6
    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: copy directory

    how exactly do I zip a folder? I tried to zip the folder... I put in its location and it zips the folder, yes, but the folder is empty!

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    Are you using the Zip Object?
    Working as fast as I can on Fusion 3

  8. #8
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    Here is an example on how to zip a directory using the Zip Object. After you zip your file, copy it to wherever you want/need and unzip it. Hope it helps.

    Copy Folder Example

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  9. #9
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2008
    Location
    Indonesia
    Posts
    694
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    Here is another method...without zipping the folder. Hope this helps
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=151886&#Post151 886

  10. #10
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: copy directory

    Because it was several times asked for a simple way to copy whole folders, I think the file-object or filefolder-object should be updatet by adding a fundamental basic action "copy whole folder".

    Regards Peter

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Copy files in a directory into another
    By K1kk0z90 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th January 2012, 10:54 AM
  2. Copy Directory to new location??
    By uncleswell in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st June 2011, 01:52 AM
  3. Copy a directory
    By AWK in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 12th February 2011, 03:24 PM
  4. Copy directory
    By FerHat in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st February 2009, 05:38 PM
  5. Copy whole directory
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th February 2009, 07:13 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
  •