Robocopy Version XP010 - Excluding Multiple Directories using /XD

I'm attempting to use Robocopy to routinely copy data between 2 servers.  In the file structure being copied there are several folders + their associated sub-folders e.g DfsrPrivate and Projects\Archived for this example I don't want to copy.
I've attempted to use the switches  /XD DfsrPrivate /XD Projects\Archived
/XF is also used to exclude all .bak files. (referenced after the 2 /XD switches)
This results in the log file header below:
   ROBOCOPY     ::     Robust File Copy for Windows     ::     Version XP010
  Started : Wed Dec 05 00:51:28 2007
   Source : \\[Servername]\Data\
     Dest : D:\Data\
    Files : *.*
Exc Files : *.bak
 Exc Dirs :  DfsrPrivate
     Projects\Archived
  Options : *.* /S /E /COPYALL /ZB /MAXAGE:1 /R:10 /W:30
This results in the DfsrPrivate being excluded but Projects\Archived and all the subfolders below are not.
 Has any one had experience with trying this, and had success?

I'm seeing the same behavior as the OP, and the quotes don't work (windows 2008 R2 server)
My output file looks like this;
   ROBOCOPY     ::     Robust File Copy for Windows                             
  Started : Mon Aug 15 15:17:29 2011
   Source : \\tsclient\C\test\
     Dest : C:\test\
    Files : *.*
 Exc Dirs : "c:\test\content\uploads\"
     "\\tsclient\c\test\content\uploads"
  Options : /JOB *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30
                    1 \\tsclient\C\test\
                    1 \\tsclient\C\test\content\
                    1 \\tsclient\C\test\content\uploads\
   *EXTRA File          0 blah - Copy - Copy.bmp
   *EXTRA File          0 blah - Copy.bmp
It should entirely ignore the \content\uploads folder (I've excluded both the source and the dest instances of that folder) - instead it consistently whacks my files

Similar Messages

  • Save file in multiple directories using receiver file adapter?

    Hi,
    Is it posible to save file in multiple directories using receiver file adapter?
    Regards,
    Ashish

    Well, there is a round about way to do that -
    The idea is to use multi mapping. 1:n mapping
    1) Map ur message to 2 different record set nodes. Since you want to use the same file both the mapping will look exactly the same. make sure that the filepath and filename are a part of the output payload message
    2) In the file adapter config. make sure the the file name and file path are from these payload fields. You can use a context object to refer these fields. Voila...the files are created in the 2 direcoties you mentioned.
    of course the simplest way is to route the same message to 2 business systems/services and write them out using 2 ccs.,
    Arvind R

  • Accessing multiple directories using single file adapter

    Hi All,
              I have data coming from two banks. I need to put them in SAP file server. Now i have two sender adapters for each bank, now is there a way i can use same receiver adapter but create diff directories to store them.
    XIer

    Hi,
    In file sender communication channel there is a check box for Advanced Selection for Source file. Check that and you dont put anything in exclusion which means it takes all the files from multiple direcotires. Please check this weblog where he has excluded some files in the directory. But you dont need to exclude anything.
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    Regards,
    ---Satish

  • File Adapter: picking files from multiple directories

    Hi all,
    In a sender file communication channel with Transport
    Protocol FTP, There are 2 parameters for Picking up the file
    called Source Directory and Filename. If I want to pick the
    files from 2 or more directories, What needs to be done.
    Or is it possible to do so ?
    Without making duplicate interfaces what else can be done ?
    Regards,
    Vijay

    Actually it is possible to select files from different folders for sender channel. It is available with SP14.
    I just copy following description from help.sap.com
    Advanced Selection for Source File
    If you want to set an exclusion mask for the File Name specified above, or if you want to specify multiple directories using a file name mask and exclusion mask, set the Advanced Selection for Source File indicator.
    ¡        Specify an Exclusion Mask for the file name specified above.
    Example
    You want to process all files that have the extension '.txt', but want to exclude all files that begin with the letter 'a'. To do this, enter .txt for File Name, and a for Exclusion Mask.
    ¡        You can enter additional specifications for source directories, file names, and exclusion masks in the table. This data is processed in addition to the details specified above.

  • CallManager Multitenant (Multiple Directories)

    As far as CallManager Multi Tenant goes, I am good with how to do everything except the directory part. From what I read, I can use the Cisco SDK (editing the XML) to say which directory each phone can see in the Corporate Directory. I'm trying to save myself a lot of research time here. Is there anyone who has been successful in creating multiple directories (using any method) and setting phones up to use these directories. I'm pretty savvy with scripting in both php/asp and I can even setup my own external directory if needed to pull from. I have full control over the system so there isn't anything I have to stay away from. any help is greatly appreciated. I am running CM 7.

    Yes. We have been successful using the "Open 79XX XML Directory".
    http://web.csma.biz/apps/xml_xmldir.php
    We are running multiple instances of this, one per tenant: one MySQL database and one XML directory URL per tenant.

  • Send multiple files in different directories using Receiver File Adapter

    Hi Experts,
    I have one File to File without ESR scenario where I have to pick multiple files from different directories and to save them in different directories on receiver side.
    Can anyne help me to send multiple files in different directories using receiver file adapter.
    Is it possible??
    Any help will be appreciated.
    Regards,
    Danish

    hi ,
    that is possiable without esr,
    we need to create one sender communication channel , in that  we nend to use "adavnced selection for source file " for sending multiple files from multiple directories.
    we need to create 'n' receiver communication channels and 'n' receiver agreements based on communication channels .
    in receiver determination, provide multiple receivers
    In interface determination , provide * symbol for receiver communication components
    thanks,

  • Multiple sites-Use both versions?

    I have 3 domains, removed into separate folders. I have backed these up.
    1. School domains-1 active classroom site/1 from last year I copy entries from
    2. Teacher Support domain-a site I created to help teachers at my school
    3. Personal site with photos
    Using “Open With” I upgraded the personal site to 2.x. IWeb 2.x is great for photos. When I upgraded the domain using 2.x it works fine.
    I can’t convert #2 above, as it is made with an 11Mystics theme and the blogs just disappear. The entries show in iWeb, but the main blog page with the RSS feeds is empty. I have yet to try deleting the RSS folder and republishing. Using 11Mystics beta for my theme and installing themes and thumbnails doesn’t work well.
    I would be happy leaving #1 & 2 in iWeb 1.x, but when I publish one will render just fine in the browser and the other always gets the error page. Sometimes they alternate.
    Has anyone been successful publishing multiple sites using both? Are there any 11Mystics users who have been successful in upgrading? I’m using Aerolite Silver. Thank you for your time.

    I'm publishing to .Mac Thanks for the information. I may give it another try. I effectively do as you do. I have an iWeb folder that has folders for each website. One will have a regular 2.x domain - the other will open the domain with iWeb 08.
    I'd convert everything, but I put so much work into my resource site (06 version)
    http://web.mac.com/dontruett/iWeb/RSTchr/Home/Home.html
    I could duplicate all of the theme pages I tweaked and use them in 2.x, but for the disappearing blogs. I may try deleting the RSS folder from iDisk and publishing again in 08. It's just so time consuming to experiment with 3 domains, then revert back, as publishing takes forever.

  • How to write file into multiple directories by using file adapter?

    i need to write my file into multiple directories,i able to do in single directory.But i need to write to muliple directories.Please help me out.Thanks in advance.

    If you are passing the values at runtime then you can loop it and and invoke the file adapter in loop by dynamically passing the value in invoke properties for "File Directory and File name" etc.

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

  • Bash script question, how do I create multiple directories on one line

    I am making a package for amavisd-new (yes I am aware that there is one in community but I can't say I like the way it is done).
    I have an install script from which I want to create multiple directories if they do not exist.
    So I want to create a directory /var/spool/amavis with subdirectories of var tmp virusmails spammassassin .
    I can't seem to be able to find a way to do this on one line.

    pelle.k wrote:
    peets wrote:Hehe because it's less typing!
    Good one!
    Also, it's by far the more dynamic method.
    If you want to get pedantic, it's also far less efficient in terms of execution time: each iteration of the loop forks a new process, whereas using a single mkdir command forks only once.  The "best" way is the curly-braces method demonstrated above by chimeric.

  • How to send multiple Recipients using the mail.jar and activation.jar

    hi!
    could somebody help me. how do i send multiple Recipient using mail.jar. when i would input 2email address in to Recipient
    (example: [email protected], [email protected])
    i get a DEBUG: setDebug: JavaMail version 1.3.2
    but if i send a single email it just works properly.
    heres my code
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public class SendMail
              public SendMail(String to, String from, String subject, String body)
              //public SendMail(String to)
                   String message_recip = to;
                   String message_subject = subject;
                   String message_cc = "";
                   String message_body = body;
                   //The JavaMail session object
                   Session session;
                   //The JavaMail message object
                   Message mesg;
                   // Pass info to the mail server as a Properties, since JavaMail (wisely) allows room for LOTS of properties...
                   Properties props = new Properties( );
                   // LAN must define the local SMTP server as "mailhost" to be able to send mail...
                   //props.put("mail.smtp.host","true");
                   props.put("mail.smtp.host", "mailhost");
                   // Create the Session object
                   session = Session.getDefaultInstance(props, null);
                   session.setDebug(true);
                   try
                        // create a message
                        mesg = new MimeMessage(session);
                        // From Address - this should come from a Properties...
                        mesg.setFrom(new InternetAddress(from));
                        // TO Address
                        InternetAddress toAddress = new InternetAddress(message_recip);
                        mesg.addRecipient(Message.RecipientType.TO, toAddress);
                        // CC Address
                        InternetAddress ccAddress = new InternetAddress(message_cc);
                        mesg.addRecipient(Message.RecipientType.CC, ccAddress);
                        // The Subject
                        mesg.setSubject(message_subject);
                        // Now the message body.
                        mesg.setText(message_body);
                        // XXX I18N: use setText(msgText.getText( ), charset)
                        // Finally, send the message!
                        Transport.send(mesg);
                   }//end of try
                   catch (MessagingException ex)
                        while ((ex = (MessagingException)ex.getNextException( )) != null)
                             ex.printStackTrace( );
                        }//end of while
              }//end of catch
         }//end of SendMail
    public static void main(String[] args)
              //String t = "[email protected], [email protected]"; - this I think causes error
    String t = "[email protected]";
              String f = "[email protected]";
              String s = "Hello World";
              String b = "the quick brown fox jumps over the lazy dog";
              SendMail sm = new SendMail(t,f,s,b);     
         }//end of main
    }//end of class
    could someone please help me im stuck-up with this. thanx!

    i need it ASAP
    i am a beginner in java and jsp
    Need to knw how can I parse the addresss field
    Below
    is the code
    <code>
    package
    public class EMailBean {
    private String smtp,username,password,from,bcc,subject,body,attachments,cc;
         /*setter*/
         public void setSmtp(String str){this.smtp=str;}
         public void setUsername(String str){this.username=str;}
         public void setPassword(String str){this.password=str;}
         public void setFrom(String str){this.from=str;}
         public void setTo(String str){this.to=str;}
         public void setCc(String str){this.cc=str;}
         public void setBcc(String str){this.bcc=str;}
         public void setSubject(String str){this.subject=str;}
         public void setBody(String str){this.body=str;}
         public void setAttachments(String str){this.attachments=str;}
                                  /*getter*/
         public String getSmtp( ){return this.smtp;}
         public String getUsername( ){return this.username;}
         public String getPassword( ){return this.password;}
         public String getFrom( ){return this.from;}
         public String getTo( ){return this.to;}
         public String getCc( ){return this.cc;}     
         public String getBcc( ){return this.bcc;}
         public String getSubject( ){return this.subject;}
         public String getBody( ){return this.body;}
    public String getAttachments( ){return this.attachments;}
    </code>
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(true);
    try {
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(mail.getFrom()));
                                  msg.addRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
                                  msg.addRecipient(Message.RecipientType.TO,new InternetAddress(mail.getTo()));
                             msg.addRecipient(Message.RecipientType.CC, new InternetAddress(mail.getCc()));
                                  msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
    msg.setSubject(mail.getSubject());
    // Create the message part
    BodyPart messageBodyPart = new MimeBodyPart();
    // Fill the message
    messageBodyPart.setText(mail.getBody());
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(mail.getAttachments());
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(source.getName());
    multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    msg.setSentDate(new Date());
    Transport t = session.getTransport("smtp");
    try {
    t.connect(mail.getUsername(), mail.getPassword());
    t.sendMessage(msg, msg.getAllRecipients());
    } finally {
    t.close();
    result = result + "<FONT SIZE='4' COLOR='blue'><B>Success!</B>"+"<FONT SIZE='4' COLOR='black'> "+"<HR><FONT color='green'><B>Mail was successfully sent to </B></FONT>: "+mail.getTo()+"<BR>";
    if (!("".equals(mail.getCc())))
    result = result +"<FONT color='green'><B>CCed To </B></FONT>: "+mail.getCc()+"<BR>";
    if (!("".equals(mail.getBcc())))
    result = result +"<FONT color='green'><B>BCCed To </B></FONT>: "+mail.getBcc() ;
    result = result+"<BR><HR>";
    } catch (MessagingException mex) {
    result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+mex.toString()+"<BR><HR>";
    } catch (Exception e) {
    result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+e.toString()+"<BR><HR>";
    e.printStackTrace();
    finally {
    return result;
    }

  • The version of GroupWise you are using cannot access this post office

    I built a new Server and added it to my PCSD Tree. The new server name is
    GroupWise and has an IP Address of 10.10.0.13.
    I followed the GroupWise 7 Installation Guide and installed GroupWise to
    this server. At no point did I find any place to enter the GroupWise
    License.
    During the install I discovered that 4 of my long time employees were not
    able to be assigned to this new GroupWise server. It appears that a one
    time (Long time ago) these 4 employees were part of an old GroupWise Mail
    server that must have been removed. I can not find any reference to this
    old GroupWise server. My thought is to delete the accounts for there 4
    users and recreate the accounts.
    However the larger problem is this: I can not login to the GroupWise
    Server. Below are two screen shots of what I’m getting when I
    launch the GroupWise 7 Client. When I look at the .NLM loaded on the
    Server for GroupWise MTA 7.0 it shows Domain Total=1 Closed=0, Post
    Offices Total=1 Closed=1, Gateways Total=0 Closed=0.
    On the Client, when I launch GroupWise, The Novell GroupWise Startup has a
    message in the message window “The version of GroupWise you are
    using cannot access this post office”. Then after clicking OK three
    times, the following message appears on the screen “GroupWise did
    not initialize successfully, Please run GroupWise Setup, or contact your
    system administrator. Unspecified error OLE Error 80004005

    *During the install I discovered that 4 of my long time employees were not
    able to be assigned to this new GroupWise server. It appears that a one
    time (Long time ago) these 4 employees were part of an old GroupWise Mail
    server that must have been removed. I can not find any reference to this
    old GroupWise server. My thought is to delete the accounts for there 4
    users and recreate the accounts.
    **You need to disassociate these four NDS users from any GW attributes.
    Right-click each user in C1, GroupWise Utilities->GW / eDirectory
    Association->Disassociate GroupWise Attributes.
    *** When I do as instructed I get the following error:
    [username] is missing the following attribute: NGW: Post Office
    ~~~~~~~~~~~~~~~~~~~~~~~~
    *GroupWise MTA 7.0 it shows Domain Total=1 Closed=0, Post
    Offices Total=1 Closed=1, Gateways Total=0 Closed=0.
    **If the post office is closed, you need to determine why this is. On the
    MTA, hit F10, Configuration Status, highlight your PO and hit enter,
    select details, then look at the last closure reason.
    *** Last Closure Reason= Missing or incomplete address information
    [ When I installed GroupWise, I wanted all the e-mail to be stored on the
    EMAIL Volume. During the install, I Changed the Install Directory to
    \Groupwiseemail. After the install I have two directories in this volume.
    One called DOMAIN and the other called PCAM (PCAM is name of my domain).
    ~~~~~~~~~~~~~~~~~~~~~~~~
    *On the Client, when I launch GroupWise, The Novell GroupWise Startup has
    a message in the message window 'The version of GroupWise you are
    using cannot access this post office'.
    **What version of GroupWise is on the server and what version client are
    you
    using? Also, if you pull up the properties of both the domain and post
    office in C1 what is the database version listed as?
    *** I installed GroupWise 7 both Server and Client. I'm thinking this is
    due to the Post Office being closed. I only have 1 Post Office.
    Thank You;
    Lewis

  • How do I separate a PDF into multiple PDFs using Adobe PDF Pack?

    How do I separate a pdf into multiple pdfs using AdobePack?
    [Title edited to reflect actual product name... Mod]

    I do not find "AdobePack" when I look at the list of forums https://forums.adobe.com/welcome
    What is the exact name of the program you are using... Acrobat, or are you using the online version at Acrobat.com?
    ADDED... found Adobe PDF Pack (read only) so will move this message

  • Multiple source files from multiple directories in sender CC

    Dear all,
    My requirrement is that ,I need to use multiple directories in sender CC (only one) and send the files to receivers.
    Kindly let me know how it can be done.
    Thanks,
    Srinivasa

    Hi,
    under advanced tab.............If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    &#9679;      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    &#9675;       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    &#9675;       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,...corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (&#8220;Example Value&#8221;) is set as the value for a specified variable.
    Thanks,
    Madhu

  • How to pickup files from multiple directories

    Hi all,
    How to pickup files from multiple directories and send it to two different folders at target
    Ex:
    files\xi\us\US.txt
    files\xi\uk\UK.txt
    i need to pick up the above mentioned two files and send it to the following paths
    app1\files\us\download\US.txt
    app1\files\uk\download\UK.txt
    US.txt has to goto US folder and UK.txt has to goto UK folder only
    Regards

    Hi,
    To pick form multiple folders, select Advanced Mode for file selection in file adapter..
    there u can specify directory name/file names
    Refer
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    To put those files at multiple folders write a command line arguments for this.. go through this weblog...
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    XI/PI: Command line sample functions
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Hope this will help you....
    Regds,
    Pinangshuk.

Maybe you are looking for

  • Remaining Open Quantity on PO

    Hi.. I would appreciate your help on how i can derive the open quantity for a given PO at the line item level. I cannot find any field in the EKPO table. Also if there is batch specified for the material at the line item level on the PO , how i can r

  • How can I use multiple client side vlans in ACE?

    In CSM we have a default-gateway per Client VLAN, in ACE there is no equivalent command! How does the ACE handles routing in this situation?

  • [zen x-fi2] issue with transflash music or video playing

    Hi All, i've a xfi-2 player and a 6gb transflash memory. Every time I try to access music or videos in my microsd section i get this message: "Ready to build library, This may take a few minutes. Proceed?" I think that this message should appear only

  • Premiere Elemenents 13 frequent crashes

    Hi, I just moved to Premiere Elements 13. I am getting crashes all the time when trying to just view my timeline video. It is really unusable because almost everything makes it to crash. I used Premiere Elements 11 before and did not see this many pr

  • Creating radio button and make it ennable

    Hello All , Please help me out in creating radio button and make it ennable in web dynpro in java application . If Possible please send the sample code as well. Thanks jyothi.