Robocopy - Include directories (as opposed to Include files) option?

Hello,
I would like to copy only a given set of directories using robocopy. How can this be achieved? Is there an option that I am missing?
Details of my requirement:
- I already use robocopy to sync a large number of binary files. I use robocopy obviously because I want to copy only the files that are changed since the last copy. (something like rsync)
- Almost always I can run the robocopy on the top level directory. But once in a while (very infrequently), I need to copy a few files (~100 files) from 3-4 directories. I do not want to copy anything else. Again, not all files within these 3-4 directories have changed. But I know that the files that have changed are within these directories. So again using robocopy will be ideal because it will detect and copy only the changed files.
From what I see so far, there is no way to provide just these directory names to robocopy and copy the appropriate files. I will have to loop through these directories and then robocopy individual files. Is that correct? Or is there an option in robocopy that can achieve this?
Many thanks,
-Hari

Hello Bill,
Thank you very much for the quick response.
Yes, that is an option. I am trying to avoid making wholesale changes to the script that I currently have and that is why I was desperately looking for a robocopy option that takes files/dirs to include. I guess I should give more details to explain why it will require wholesale changes.
We already have a script that goes through various processing and does something like this at the end:
robocopy MySourceDir MyDestDir /E /XD <...>
Here MySourceDir and MyDestDir are top level directories. So far the script's work (before it executes robocopy) has been to determine the MySourceDir and MyDestDir (where to push to, which branch should the files come from etc..) and also what files to exclude.
The requirement that I mentioned above (need to copy certain directories only) came in now. And an additional point that I missed is that along with the certain number of directories, a few top level files can make it to the list as well.
This essentially means that I will need to
(a) write a section to first identify if its a file or a directory
(b) then create an appropriate robocopy command, depending on if its a file or a directory
(c) in addition, the file in question can be there in any number of sub-directories. For example, I might have a hari.xml file at the top level + a couple of sub-directories. But I just want the hari.xml at the top to go out. Since the file syntax of robocopy does not take the path (AFAIK), it gets a bit more complicated.
In order to avoid all these, I was looking for an option where robocopy will just take an include pattern of sorts (just like rsync's --include or --include-file options).
It looks like I will have to rework the script quite a bit to get this done. But just wanted to check in here in this forum to see if there is a better solution out there.
thanks,
-Hari

Similar Messages

  • How to include a license header in fxml file?

    How to include a license header in fxml file?
    I tried xml block comments <!-- mylicense here -->
    but it wasn't accepted by screen builder.
    Also I wondered, even if it had been accepted, would screen builder have saved the header back - or deleted it?

    All XML documents should begin with an XML declaration.
    If you have your fxml file starting with  the following lines :
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- mylicense here -->
    .. it will be loaded in Scene Builder, and saved back as is.

  • I am using a macbook pro with system 10.6.8. I just discovered that no recent files have been backed up to the external disk using Time Capsule.  There is a long list of backups including most recent but no recent files, for some weeks, have been backed u

    I am using a macbook pro with system 10.6.8. I just discovered that no recent files have been backed up to the external disk using Time Capsule.  There is a long list of backups including most recent but no recent files, for some weeks, have been backed up.  I did a full reset of Time Machine.  I disconnected the external drive and reconnected it. It is not a matter of file types, no files and no folders have gotten backed up.  Everything looks normal though unless one goes hunting for recent files on the back up.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • How I can include several sequences in one sequence file?

    I am new for teststand and forgive me if my question seems silly.
    How I can include several sequences in one sequence file? I would like to use " call sequence" in current file.
    thanks a lot for your kind help

    Hey gunking,
    If you'd like to find out more information about our training courses, I'd be happy to speak with you further about what the course contains and locations offered, but it's probably best if we take this off of the forums for further conversation via phone or email.
    Create a new support request at www.ni.com/contact and set the product as TestStand.  You will be directed to myself or another engineer on my team, at which point you can ask for me or just speak with one of my teammates.
    Off the top of my head, I do know that there are a few courses coming up in Austin in the next couple of weeks (I'm teaching one myself), if you're interested in those.  Otherwise, courses are always being added for the future.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Include Graph / Chart in a jsp file

    How we can include the Graph in a jsp file?

    You probably wouldn't. More likely, you'd have an <IMG> tag or the like, whose source would point to a servlet (assuming that the chart/graph has to be generated by Java code).
    Edited by: paulcw on Jul 17, 2010 12:51 AM

  • How to include in report versions of some files?

    ZCM: 10.2.1 at SLES 10 SP2
    WS: Windows XP SP3 RUS
    I want to create report about version of software products installed in my company. But some products doesn't display full version number (flash player plugin and activex have version 10.0.32.18, but in report i see only 10.0).
    I know, that version of flash player is same with version files in "C:\WINDOWS\system32\Macromed\Flash".
    How to include in report versions of this files?

    bronislav,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Xalan, xsl:include, The system cannot find the file specified

     

    Hi
    Xalan is unable to parse stylesheets which contain xsl:include
    directives, even if the file being included is in the same directory.
    I'm currently porting our web application to weblogic 6.0 sp2 running on
    Windows 2000. The application works fine except for one annoying problem,
    this problem only manifests on Weblogic 6.0 sp2.
    I've got a servlet which makes use of a jsp tag. The tag uses the
    ServletContext.getResource() to reference a stylesheet in the webapps' xsl
    subdirectory. If that stylesheet contains an xsl:include e.g. <xsl:include
    href="myother.xsl"/>, myother.xsl is contained in the same directory as the
    stylesheet containing the include. Xalan fails to parse the stylesheet. The
    following exception is thrown "org.apache.xalan.XSLProcessorException: The
    system cannot find the file specified".
    I've currently amended the weblogic classpath as follows
    set
    CLASSPATH=.;c:\myjars\xerces.jar;c:\myjars\xalan.jar;c:\myjars\bsf.jar;c:\my
    jars\js.jar;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
    xerces v1.4
    xalan v1.2.2
    bsf (as supplied with xalan 1.2.2)
    js (Mozilla Rhino 15R2)
    The code in the jsp tag to load the stylesheet is as follows
    XSLTProcessor processor =
    XSLTProcessorFactory.getProcessorUsingLiaisonName("org.apache.xalan.xpath.xd
    om.XercesLiaison");
    URL styleSheetUrl =
    pageContext.getServletContext().getResource("/xsl/myxsl.xsl");
    StylesheetRoot stylesheet = processor.processStylesheet(new
    XSLTInputSource(styleSheetUrl.toExternalForm()));
    Any help would be appreciated.
    Regards
    Tony

  • Flash Player 9, Director MX, LocalConnection and the file system sandbox

    I have a Director MX asset to which I have no source-code
    access. Previously I could use LocalConnection in a Flash Player 8
    projector to interact with the Director app, local to the
    file-system. I seem unable to do the same thing with a Flash Player
    9 projector. The director asset looks for and loads the relevant
    Flash projector and unloads itself when it is no longer present,
    and this functionality continues without a problem. However, when I
    use the LocalConnection.send method, the Flash player does not
    receive the expected responses.
    I know that this is a rather general and abstract question:
    put simply, does anyone know whether Flash Player 9 and Director MX
    can't talk to each other using LocalConnection?
    ps to pre-empt over-enthusiastic respondees, yes I am aware
    of other technologies such as AIR, Zinc etc, and no they're not a
    viable option for my particular project.

    Hi,
    the following sourcecode is compiled with Flexbuilder 2 and
    runs in flashplayer 9.0.115 as expected.
    How do you trigger the effect?
    best regards,
    kcell
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Button label="run"
    click="{wr1.play();}"></mx:Button>
    <mx:Label id="l1" top="20" text="this is label"
    visible="false"/>
    <mx:Image id="img1" source="@Embed('k.jpg')" top="40"
    visible="false"/>
    <mx:WipeRight id="wr1" target="{img1}" duration="1000"
    effectStart="img1.visible=true" effectEnd="{wr2.play();}"/>
    <mx:WipeRight id="wr2" target="{l1}" duration="1000"
    effectStart="l1.visible=true"/>
    </mx:Application>

  • Outlook 2013 weather bar does not show in the File- Options- Canlendar panel

    I installed a chinese office 2013, the machine can connected to internet properly. after I created a profile and logon to outlook, I found the weather bar section was not displayed in the File->Option->Canlendar panel although I configured to install
    all the components and features of office 2013. Please see below snapshot:
    I tried all the possible solutions which others mentioned from the web site, including set the system registry disableWeather to zero, which mentioned in
    http://msdn.microsoft.com/en-us/library/office/jj228383.aspx ,and
    "... Verify that Office is enabled to connect to the Internet – go to the Privacy options tab of the Trust Center in the Office Fluent Backstage view, and make sure that Allow Office to connect to the Internet is checked. ..."
    All these can not solve my problem, weather bar disappeared in the Calendar panel any way.
    Is anyone help me give some hints or suggestions, I really appreciate your any help!
    Best Regards, Emily

    Hi,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the end-user, I'd like to move it to Outlook IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • LSMW, Step - Specify Files option

    Dear Experts,
    Please explain the details at Specify files options in LSMW
    I want to know about following options -
    1) Legacy data on PC (Front end)
    2) Legacy data on the R/3 server (Application Server)
    3) Imported data File for imported data (Application server)
    4) Converted data File for converted data (Application server)
    5) Wild card value Value of wild card ' * * in file name.
    Thanks in advance

    1) Legacy data on PC (Front end)
    -- defines that SAP shall find and upload the source file from your PCs Harddrive (can as well be a network drive)
    2) Legacy data on the R/3 server (Application Server)
    -- defines that the source file is to be found in the file system of your SAP system
    I use this often when we merge SAP systems, so I can send IDOCs from old SAP system to new SAP system and output the IDOCs directly as file. This file can then be found in on the SAP application server. (you can display the SAP directories with AL11 transaction)
    3) Imported data File for imported data (Application server)
    - this is the internal file LSMW writes the data to when it uploads from PC or application server.
    4) Converted data File for converted data (Application server)
    - this is the internal file LSMW writes the data  to when it converts from imported data file using the mapping rules.
    5) Wild card value Value of wild card ' * * in file name.
    - This allows you to use to use the same LSMW for many many similar files (e.g. if you migrate materials and you get extra files from each company) without the need to change the above entered names.

  • Unable to download data in ALV output with local file option

    Hi,
    I am displaying ouput in ALV grid display.Its showing output fine.When i am trying to down load the data into Excel file from ALV ouput .when i am downloaded the data by using Local file option,its down loading the data but its not downloading all the fields.
    Could you plz provide me solution.Thanks!

    Just Check that one of your parameters is defined in lower case letters.
    Earlier it used to give dump on execution but now if you download then it will give ABAP dump.
    I have seen this problem many times.
    Regards,
    Gaurav Sood

  • Trigger File Option in SFTP Advantco Sender Adapter

    Hi ,
    What is the purpose of Trigger file option in sender SFTP adapter?When i enabled Advance selection for source file we have this functionality.Can i use this option to delete the multiple files in the same directory instead of using File Name Mask.
    We have scenario to delete 4 files from application server in that only one file should be sent to partner and the rest should be delete from application server.
    Actual solution is to use to use script to delete the rest of the files do we have any other alternative.
    Thanks

    Hi,
    Another alternativet is to write your own customer adapter module and using java programming you can delete remaining 3 files. This is bit complex comapre to script writing but one advantage is with adapter module is that, you can provide the deteted file names with time stamp in the audit log of XI message, which will help in troublshooting if some issue happens.
    Regards,
    RK

  • Popup with open and save file option

    Hi,
    I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
    My page process code is
    begin
    pro_create_ical(:P6_START_DATE,:P6_END_DATE);
    end;when i click on export file button it should raise a popup with open and save file option.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 25, 2013 1:59 AM
    Edited by: Vedant on Jan 25, 2013 2:00 AM
    Edited by: Vedant on Jan 25, 2013 3:49 AM

    Shiv,
    Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
    This issue is fixed in Latest Support Package Versions.
    Which Version of Support Package you are using?
    If EP6 <SP19 you will face this issue.
    Just upgrade it to EP6, Support Pack-19,this will be resolved.
    Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
    Hope it helps
    Regards,
    Karthick Eswaran
    *Reward Points for helpful answers.

  • Ipod Nano 5th GenerationWindows xp.  My nano no longer opens automatically with file options menu.  Trying to import priceless videos of my daughter  from ipod to computer so I run it and get these results:  My computer/ipod/dcim/000apple and 75 IMG.DAT

    Nano 5th GenerationWindows xp. 
    My nano no longer opens automatically with file options menu when I connect it to my lap top.  Trying to import priceless videos of my daughter  from ipod to computer, However,  when I run it I get these results: I click onto  My computer/ipod/dcim/000apple and 75 IMG.DAT files come up.  Now I am almost sure those files shouldnt be on there.  If my memory serves me corrrectly the dcim folder is where one should be able to find video recording made with their iopd?If there is a way to import these videos without having to reset my ipod and lose precious videos please please let me know? HELLLLLLP

    Try: http://discussions.apple.com/thread.jspa?threadID=743515&tstart=15

  • Error in LSMW Specify Files option

    Hi Gurus,
    I am getting error while doing Specify Files option while using below mentioned object:
    Object 0210 Storage bin (WM)
    Method 0000
    Program name RLPLAT00
    Program type B Batch input
    Error :
    In Convert data option i am entering below details:
    Logical Path /TMP
    Logical File MM_WM_BIN_TAKEOVER
    I am getting error :
    Logical file 'MM_WM_BIN_TAKEOVER' is not assigned to physical file 'UPGRD_MTD_WM_TEST.lsmw.conv'
    Cany anyone suggest what should i do to execute this?
    Regards,
    Arpit

    Hi Guys,
    I have solved my problem. Please refer below note for solution of this problem:
    Note 753511 - Logical and physical path and file name in transaction LSMW
    Our LSMW version was upgraded to 4.0 hence i was getting this error. I have provided Logical file name and Path accordingly to solve my problem
    Arpit

Maybe you are looking for

  • Various problems since Mavericks update

    Since doing the Mavericks update a few days ago, I'm having a few issues with seemingly unrelated programs. 1) Quicksilver Works perfectly except for the triggers (shortcuts) that act on selected text. Eg normally I could select the word 'text' in th

  • IllegalStateException:output stream is already being used for this request

    How to read binary data in JSP. I know, in servlets it can be done and JSP can handle only character data. When i try to open res.getOutputStream(), it is throwing the following exception:"IllegalStateException:output stream is already being used for

  • Synchronous HTTP  connections

    Hi All, I have a http proxy service which calls a biz service to forward message to an external biz service. This proxy service should be designed to support high volume of messages. Couple of things that I would like to understand here. According to

  • ORA-00002: error in writing to export file

    Hi All, I am using 32-bit windows as oracle 10g client and oracle 10g server is install on unix. When I execute c:\> exp username/password@hostname file=trupm.dmp log=trump.log I get ORA-00002: error in writing to export file I have check my OS space

  • Install and run  Leopard on Western Digital 1TB "My Book"2 Studio Edition

    Hi I'm considering buying this HD and would like to install and run the OS from it - is this relatively easy? And what connection would you recommend usb or fw400? Once installed on the hd i'd then like to wipe the iMac HD and do a clean install. Als