User Tag List

Results 1 to 2 of 2

Thread: Best way to copy the contents of a directory into a new directory?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Apr 2008
    Posts
    202
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Best way to copy the contents of a directory into a new directory?

    Hi, anyone know the best way to copy the contents of a directory into a new directory in windows from code, (ideally without having to know/reference the name of each file)

    Thanks

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Christian_Wheel's Avatar
    Join Date
    Mar 2010
    Location
    Los Angeles
    Posts
    344
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use the list object to get a list of files from a folder, then set up a loop to copy each one to the new folder and remove it from the list. This will not catch subfolders though.

    If you need subfolders, probably the easiest thing to do is run external command:
    xcopy "C:\Path1\*.*" "C:\Path2\" /e /y /c /r /h /q

Similar Threads

  1. copy directory
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 10th February 2012, 09:16 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
  •