Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2006
    Posts
    346

    Folder copy excluding file

    I searched the forum but could not find anything.

    Is it possible to copy a folder and all its sub directories and exclude a specific file like ntuser.dat? If so, how - Is there an example somewhere?

    Thanks

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Yeah, try the search again "Copy Folder" - there were several hits out there that should get you started.

  3. #3
    Join Date
    Feb 2006
    Posts
    346
    Thanks - Find this post http://www.indigorose.com/forums/showthread.php?t=27042

    It does not show how to exclude a file such as ntuser.dat. Any help would be great!

  4. #4
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Quote Originally Posted by abnrange View Post
    Thanks - Find this post http://www.indigorose.com/forums/showthread.php?t=27042

    It does not show how to exclude a file such as ntuser.dat. Any help would be great!
    If you check this post that was included in your search:
    http://www.indigorose.com/forums/showthread.php?t=6797

    You should be able to exclude your file quite easily...
    e.g.: if variable_name ~= ntuser.dat then...etc.

    You should be able to figure it out...if you can't, post your code and someone will assist...
    Last edited by holtgrewe; 06-16-2009 at 06:56 AM.

  5. #5
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    A good alternative is RoboCopy.

    It is a free Microsoft command-line utility for complex file copying, with many options.

    Also, the file is only 78k.

    Should work just fine within AMS.

    You can get it by downloading the "Windows Server 2003 Resource Kit Tools".

  6. #6
    Join Date
    Feb 2006
    Posts
    346
    I will give that a try - Thanks

  7. #7
    Join Date
    Oct 2002
    Location
    Netherlands
    Posts
    199
    or delete the file from destination after the copy procedure.

    mario

  8. #8
    Join Date
    Aug 2004
    Location
    Rio de Janeiro, Brasil
    Posts
    62

    Lightbulb

    Quote Originally Posted by abnrange View Post
    I searched the forum but could not find anything.

    Is it possible to copy a folder and all its sub directories and exclude a specific file like ntuser.dat? If so, how - Is there an example somewhere?

    Thanks
    Hi! Many ways to do the same thing. Another way: use the "Find file" function to copy file by file using a filter into the callback.

    (if necessary, I can make an example in 25/06)

  9. #9
    Join Date
    Apr 2009
    Posts
    277
    Quote Originally Posted by Mikhail View Post
    Hi! Many ways to do the same thing. Another way: use the "Find file" function to copy file by file using a filter into the callback.

    thats what i would do , you can make very complex file routines with AMS, no need for 3rd party tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts