Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020

    Folder Copy and Folder Move Actions

    Hi,

    How do I Move Folder into another Folder, since there is no Folder.Move action?

    Is there a way to copy a whole Folder and it's content to another Folder using AMS actions?
    Last edited by azmanar; 02-04-2006 at 08:55 AM.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  2. #2
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617
    you would have to use
    Code:
    Folder.Create()
    to make the folder you want and use
    Code:
    File.Move("C:\\MyDir\\*.*", "C:\\DestDir\\", true, true, false, false, nil);
    to copy the files you want into the new folder. if you need to delete the old info use the
    Code:
    File.Delete("C:\\MyDir\\MyFile.ext", false, false, false, nil);
    hope that helps

    chris

  3. #3
    Join Date
    Oct 2005
    Location
    Brazil - Belo Horizonte
    Posts
    118
    Well, you could do a File.Copy action for every file in the folder, but if the folder has a lot of files it will be a lot of work.

  4. #4
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Chris and Daniel,

    THANKS !!!!!!.........Great guys
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  5. #5
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617
    the File.Move() can move all the files in a certain folder at one time. much cleaner than the File.Copy().

    Chris

  6. #6
    Join Date
    Oct 2005
    Location
    Brazil - Belo Horizonte
    Posts
    118
    Quote Originally Posted by stickck
    the File.Move() can move all the files in a certain folder at one time. much cleaner than the File.Copy().

    Chris
    Thanks, Chris! I did not know about that.

  7. #7
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    hmmm...

    Moving subfolder and sub-subfolders of a folder would be nasty.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by azmanar
    Hi,

    How do I Move Folder into another Folder, since there is no Folder.Move action?

    Is there a way to copy a whole Folder and it's content to another Folder using AMS actions?
    http://indigorose.com/forums/showthr...rm+copy+folder

    Intrigued

  9. #9
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Intrigue,

    Thanks for the link .....! Truly helpful pointers by Worm and yourself in there.

    It would be neat if AMS have Folder.Move & Folder.Copy actions.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  10. #10
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I hear you, agreed.
    Intrigued

Similar Threads

  1. Function to Copy a Folder, Sub-folders and files
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 50
    Last Post: 05-06-2006, 07:49 AM
  2. how copy my selected file only to my Created folder in web Object ??
    By ANAS3 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 01-10-2006, 01:24 PM
  3. Copy folder and subfolders
    By rookie99 in forum Setup Factory 7.0
    Replies: 3
    Last Post: 11-25-2004, 02:37 AM
  4. INFO: The Explore Button on the Distribution Folder Dialog
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-11-2002, 12:06 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