Robocopy /mir and keeps 2 Unchange destination file.

Hello team,

I use Robocopy to copy paste the code to the Production Server to the staging server, I want to move all production files to the staging using config file 2 excluded from mirror, in this I want to Destination file should not remove old 2 config file.

Below is the code:

Robocopy /MIR /XF Web.config Key.config  

At the top of the source code file exclude 'Web.config' and 'key.config' is true
but

in destination, the files become deleted "I don't want to delete want kept because it is (old config file).

Thanks for the help.

Kind regards
Yogesh CAT

YJ


This issue is beyond the scope of this site and must be placed on Technet or MSDN

http://social.msdn.Microsoft.com/forums/en-us/home

Tags: Windows

Similar Questions

  • 910219. how to download and keep the Windows Update files?

    Hello

    What is the ideal way to update Windows? now, Windows downloads the selected updates. where? I do not know! and after their installation, it removes the packages for installation on my computer. This causes the downloaded updates are lost, and I can't use them to similar machines that need to install the same updates. for these machines, I have to download updates again! This causes my internet to be charged again while it is not really necessary.

    the ideal way, in my view, is that I can specify a folder for the Windows Update service. It can use a default folder for that also. After selecting the updates, I want to install in my system, it checks to see if the update is already existing in the folder. only if NOT it downloads. then after downloading it maintains the package in the same folder after installing. installation should be done automatically as it is done now. Then I can move the folder to another machine. in the second machine, I also choose the update I want to be installed which are mostly the same as the first machine. for example, Windows Update only consumes my internet traffic for updates that are not yet downloaded. I wonder why Windows Update doesn't currently work the same way?

    by this method, I can at least use the consumption of traffic and I can access the latest updates with the easier and faster way. I I would like to choose a memory flash for this purpose and keep the folder inside.

    is there a way to achieve this?

    THX

    Security updates are available on image files CD ISO-9660 starting from Microsoft Download Center

    http://support.Microsoft.com/kb/913086>

    You can also download individual updates from the catalog and save to be installed later.

    http://v4.windowsupdate.Microsoft.com/catalog/en/default.asp>

    You can also download individual updates from the catalog and save to be installed later.

    http://catalog.update.Microsoft.com/v7/site/home.aspx>

    Click the Add button for each update you want to download. Once you have what you want, click on the link "go to download basket. Type or browse to the location where you want the saved updates to and then click on the button "Download Now".

    Once downloaded, you can then burn to CD or Flash...

    How to download drivers and updates from the Windows Update Catalog or the Microsoft Update Catalog

    http://support.Microsoft.com/kb/323166>

    Other links that may be useful:

    Search for a download

    http://www.Microsoft.com/downloads/search.aspx?displaylang=en>

    How to install multiple Windows updates or hotfixes with only one reboot

    http://support.Microsoft.com/?kbid=296861>

    For security and other fixes published for a given month:

    http://www.Microsoft.com/technet/security/bulletin/Ms#-* .mspx >

    Replace # with two-digit year

    Replace * with the three-character month abbreviation

    There are reported for that month, you will see the list of 'critical' patches 'important' for this month

    Check the 2nd Tuesday of each month - later in the day.

    For just the list:

    http://www.Microsoft.com/technet/security/current.aspx>

    Courtesy of MVP Harold Horne

    UTC/GMT is 12:58 on Wednesday, May 9, 2012

  • Need to copy audio files from a USB on the computer for transcription - how to sync and keep the original audio files on USB?

    Have the transcript very important things to do; usually get audio on the discs, but this time I had rec on a USB - has never worked with USB before, and I don't know how I copy the files on the USB key to an audio file in my computer through Windows Media.  Really of what I can do something wrong and erase/delete files on the USB key if I don't know what I'm doing.  I guess I "sync", but could someone please give me step by step on how it's done with Vista?  As you can summize, I'm "technically not contested."

    Thank you.

    Hi Tech Mom,

    If you copy and paste a file or folder, it does not get deleted in the source location. It gets deleted in the source location when you cut and paste the file or folder. The article below explains how to copy and paste a file or folder.

    Copy a file or folder
    http://Windows.Microsoft.com/en-us/Windows-Vista/copy-a-file-or-folder

    See question 5th from the link below.
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Media-Player-sync-frequently-asked-questions

    I hope this helps.

    Bindu S - Microsoft Support

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • I paid for PDF Pack and keep getting a 404 - File not found error when I try to do something

    Just paid for PDF Pack and can not get it to start working.  Open a file, went to account, create, got to the Web site, and it won't let me do anything.

    error 404.JPG

    Good news, EJ!

    Let me know if you have any other questions.

    Sincerely, Stacy

  • ROBOCOPY can move files created yesterday to the target files and keep the folder tree and datetime attributes

    I want to create a script to move the files created in the day before in a file archive (and subfolders) into a new target folder daily.  For example, whenever I run the below script 10/02/2015, I would move files created on 01/10/2015 and earlier source archives files to the destination folders, with the same folder structure and datetime preserved.  This is my 1st ROBOCOPY command in the script.

    % VarSourceArchives % varTargetArchivesFolder % Robocopy / MIR / COPYALL / DCOPY:T / MOV / MINING: 1

    However, it doesn't move the files of more than 24 hours from when I run the script, rather than all the files created yesterday. Technically, he did what has been said, but not exactly I want.  It seems if you use /COPYALL switch, the switch / MINING: N compare file date & time stamp as file age exclusion, rather than just the number of exclusion of age days.

    How can I achieve my goal to move files from a specified number of days while preserving the postmark date & time of folders and files?  Are there different ROBOCOPY switches to set, or if it is complex date and the calculation of leap year?

    Thank you

    Michael J.

    Robocopy is a bit lacking in this regard. You can use the hybrid batch file below to reach your goal. Sets the attribute archive every file that was modified yesterday and it resets any other file attribute so that robocopy will only move the files of yesterday.

    off @echo
    Set Source = folder Temp D:\My
    the target folder = target value M:\My

    Set Scr="%temp%\TempVBS.vbs".
    (echo sPath = 'Source %'
    echo Set OFSO = CreateObject("Scripting.Filesystemobject"^)
    echo sYesterday = FormatDateTime (DateAdd ("d", Now (^),-1 ^), 2 ^)
    echo process feldspar
    echo Process(sP^) Sub
    ECHO for each represented in oFSO.GetFolder(sp^). Files
    FormatDateTime(oFile.DateLastModified,2^) if echo = _ sYesterday
    the echo then oFile.Attributes = 32 _
    echo oFile.Attributes = 0 Else
    Following the echo
    ECHO for each older in oFSO.GetFolder(sP^). Subfolders
    echo process oFolder.Path
    Following the echo
    echo End Sub) > Scr %
    cscript //nologo % VCC
    del % VCC
    Robocopy /a /s /mov 'Source %' 'target percent '.

  • How to move the MSWMM files and keep the data on my computer?

    I downloaded digital film from my camera to a destination on my D drive as a file MSWMM (collections), and whenever I try to move the downloaded film (collection), it does not recognize the movie more.

    How to move the MSWMM files and keep the data on my computer?

    The mswmm file is the project file, not a video.
    Think of it as a recipe for a cake, it only tells you what to do with the ingredients, but does not include the ingredients.
    The mswmm file tells the computer to look in a certain folder to use a video or audio file.
    If you move the file, then MM knows not where is the file, then you must tell it, by right clicking on a red x on the timeline and then choose search for the file.

  • Audiobook management: how to mark files as audiobook and keep them like that?

    I have a lot of audio books. Those who were read from the CD and thus find themselves in the music section. ⌘ + I > Options > audio books allows me to move these files in the audiobook section.

    The questions, is this flag is not retained once these files are deleted from iTunes and then added. The files that I've marked as "Audiobook" earlier is now back in the section music.

    I find it extremely frustrating and confusing. Is it possible to keep the files correctly marked so that they are automatically added to the article when added audio books?

    The files have extension to .m4b?

  • using a hp 6500 - how to scan several image documents and keep them in a single image file

    using a hp 6500 - how to scan several image documents and keep them in a single image file instead of hafving to create a separate file for each page?

    http://h30434.www3.HP.com/T5/scanning-faxing-and-copying/HP-OfficeJet-6500-scan-multiple-pages-into-one-PDF-file/TD-p/252650

    This previous thread should help you.

  • Windows 7 can't copy files on external hard drive and keep showing "cannot read the source file or disk.

    Windows 7 can't copy files on external hard drive and keep showing "cannot read the source file or disk" HELP me PLS
    I'm going crazy because of this

    Hello

    1. What is the format of the file system on the external hard drive?

    2. are you able to copy or move files into the computer?

    You can follow the suggestions mentioned below and check with the question.

     
     
    Method 1:Delete CCG, prefetch files.
     
    Step 1: Delete Temp files

    (1) open the window run (Windows key + R)

    (2) type %temp%, and then press ENTER

    (3) delete all Temp files in the Temp folder
     
    Step 2: Delete Prefetch files

    (1) open the window run (Windows key + R)

    (2) type %temp%, and then press ENTER

    (3) delete all files in the Prefetch folder.

    Method 2: Run the tool (SFC.exe) System File Checker, try to copy the files and check.
     
    Follow the form of measures the following link: http://support.microsoft.com/kb/929833
    Method 3: Run the check disk then try to copy the files and check.
    Note: If bad sectors are found in the hard drive then it could try to fix this particular sector. If you have any data on that, it can get lost.
     
     
    I hope this helps!
  • How you copy mp3 files from the my music for a cd drive folder and keep the files in mp3 format, format it with windows 8

    in the past with previous versions of windows, you can easily copy MP3s to a cd and keep the files in format mp3, format thus creating an mp3 disc, you made by selecting the songs you want to copy on disk, you must select the songs of the my folder music and make a click right then on the song selected or songs , you would then select send, and then select the drive that contains the blank cd in it to send the songs to, you choose then to a standard audio CD or data cd, you must select the option data cd and the drive will keep the songs in mp3 format, it was all done using windows Explorer. I would like to do the same thing to do these discs mp3 on my computer windows 8, however I can not understand how do, can help a whole me with that?

    Hello

    I would ask you to check out the link and follow the steps in the article.

    Burn a CD or DVD in Windows Media Player

    http://Windows.Microsoft.com/en-in/Windows-8/burn-CD-or-DVD-Media-Player

    Hope that answers your query. You can write back to us for other queries/problems related to windows and we will be happy to help you further.

  • Hello! I am a family oriented photographer and have a bit of trouble to keep the colors of files exported between lightroom and photoshop consistent. I edited my images on 5 Lightroom and export TIFF files after ProPhoto color space

    Hello! I am a family oriented photographer and have a bit of trouble to keep the colors of files exported between lightroom and photoshop consistent. I edited my images on 5 Lightroom and export TIFF files after changing color ProPhoto RGB space. Then, I opened a picture at once and changed the settings of Photoshop CC ProPhoto RGB color (under the workspace). When I was editing on photoshop, I tried to export the image, but the colors seemed different, a bit washed out and blue, from the color of the workspace, I was on. I don't know how to solve this problem. Please notify.

    Thank you very much for this! Color sorted

  • want to upgrade to lightroom 6 and keep the history of deveopment of my files and my plug ins

    How to upgrade to lightroom 6 and keep history of deveopment of my files and my plug-ins?

    After the upgrade of the application a copy of your existing catalog will also be improved. All plugins will remain in place. The history of develop is transferred to the new catalog, so nothing is lost...

  • How can I send a RAW file and keep it RAW?

    How can I send a RAW file and keep it as a RAW file to the recipient?

    Consider DropBox. It's free and without problem.

  • When I click on 'File' and then 'new' it keeps open a new file as a layer and not a background. The RGB mode is selected.

    When I click on 'File' and then 'new' it keeps open a new file as a layer and not a background. The RGB mode is selected.

    With the new files to open as a layer and not a background, I'm not able to create multiple layers and it won't let me convert the background layer.

    How what happened. I've used PS yesterday and had no problem. Today, my computer did updates mandatory day and now this.

    Yes. You use the option of Pixel of the Ellipse tool. He's so setting pixels as it is supposed to do without creating a layer.

    Choose the option to the form:

    Also the menu layer > new layer creates layers and paper rolled up at the bottom of your layers palette also creates a new layer. I hope these work.

  • Need to re - register a completed form on in Acrobat Reader and keep the same file name.

    I did collect a form developed for our client in. They need to access and save it several times without making several versions.

    Now that they can open, fill out some fields and "save under" a different file name. They must then go back and edit or add additional information to train at a later date.

    He won't let not the re - save the file with the same file name, only "save under". It is not very practical because they will end up with many versions of the same shape and all earlier versions would be obsolete and useless for them.

    You must disable the preview in Windows Explorer or close Windows Explorer.

Maybe you are looking for

  • The documents once iCloud and Local?

    My understanding is that turning over the Documents and desktop option copy these files/folders to iCloud while keeping them also on my Mac. When I turned it on, they no longer seems on my Mac, only in iCloud. What I am doing wrong?

  • before Apple keyboard delete key (.)

    An Apple keyboard with a numeric keypad is hard, connected to a Windows computer.  What strikes can I use to change the "." key between '0' and press 'Enter' keys to operate it as a before delete key? Thank you.

  • Uber has stopped working and I can't redownload.

    Uber is not updated or open one day and when I reset my phone app disappeared. Now when I go back to Uber in the App Store I the meaning cloud download button that I have already, but when I hit the download button, that nothing ever happens. I see t

  • Bluetooth support yoga Pro 3 Tablet level

    The system for my tablet of yoga information Pro 3 says that bluetooth 4.0 is supported. I understand a patch is needed on material 4.0 support 4.1 gadgets. This hotfix has been applied in an update? If not, are there plans to do and if so, how would

  • Linux USB-6218 PWR/ACT LED is off

    Hello world I recently bought a multifunction DAQ USB-6218 and installed all the software for it (that is, nidaqmxbase and nation). When I connect the device to my computer, I don't see the light / activity blinking as my other hardware DAQ USB-6008.