Robocopy hangs when you try to copy a file which in use

Hello

I find that Robocopy hangs when you try to copy the file using, for example an Outlook .pst file. The behavior of Vista was not to copy the file according to the retry and wait switches from command line, which allowed the backup race move to the next file and finally finish. With Windows 7 the Robocopy session is suspended and resumes ever, even if the file she is trying to copy is closed.

Is this behavior under Robocopy in Windows 7? Is it possible to get Robocopy to move to the file according to when he's trying to copy a file that is in use?

Thank you

Jason.

"There is no need of me a pause in my script"-Yes, I understand [and should have done before].

I just tested a network for the first time operation.  It hangs forever as your done even after I closed Outlook & waited for the w: 30 I put.  {I also ran with closed Outlook the first time just to make sure that the network itself had no problems}

I read that you have provided the link.  This suggests that there is no solution.

- - - - - - -

You seem to be doing a lot more & probably more structured than mine operation, this workaround might not be of any use to you.  The other open files issue concerns a simple hourly backup of my kernel files that includes pst files.

1 I xcopy all the files in a folder internal InterimBackup first.  Can I use XCopy or RoboCopy to send InterimBackup to the real destination.

2 If Outlook is open then it will copy on InterimBackup and, if the previous Outlook.pst is still in InterimBackup she gets deleted by the attempt of xcopy.  [conclusion - XCopy verifies the existence of the replacement of a file, deletes it and only then discovered that the source file is locked and cannot be copied.]

So I precede this with

0 I run [if exists] copy D:\InterimBackup\Outlook.pst to D:\InterimBackup\Outlook2.pst

The result is that whole process always ends but it only includes the last Outlook.pst that was available.  So I always make a point of Outlook to quit at some point during the day so that he could take part in this backup.

If you have also tried this as a two part operation, your xcopy / robocopy in the folder InterimBackup would always succeed but would include only Outlook.pst if you had first closed the application.  Subsequent operation of RoboCopy would always succeed with the same possible omission.

The downside of this might not suit your overall goal.  You'd have to RoboCopy separately all your others folder trees but keep the Outlook.pst in a tree that has not been included.  You could do this either by restructuring of your data or using RoboCopy exclude switches for the file Outlook.pst file.

You have to accept that you might not be sure about the last time that the Outlook file had been included unless you had deliberately run the RoboCopy closing.

I have reviewed this improvement by using Task Scheduler to respond in the event of closing Outlook and use it to initiate the copy outlook.pst to InterimBackup, then by running the part of the main operation on RoboCopy to this folder.  But my needs are so simple that I've never felt it's the logs of the events that I would have to put in place.

As I say, it may not meet your needs.

Tags: Windows

Similar Questions

  • Windows Explorer crashes when you try to copy a file

    Win xp Pro

    When you try to copy a file using windows Explorer, the application crashes. I tried to use select times of right mouse and select menu with the same results.

    All solutions short of re - install XP

    Win xp Pro

    When you try to copy a file using windows Explorer, the application crashes. I tried to use select times of right mouse and select menu with the same results.

    All solutions short of re - install XP

    This happens with any file or a particular file?

    Have you tried the copy command from a command prompt window (start > run > cmd > OK)?

    For the full syntax of the copy command, see http://technet.microsoft.com/en-us/library/bb490886.aspx

  • When you try to copy a file 'trust' in Vista, get the message 'Copy as administrator'

    I have a computer with Windows Vista Home Premium (32 bit), in which I am an administrator on the computer. I have a file that is "safe" and requires administrator permission to open. Since I am an administrator, I was able to open the file. But when I tried to cut or copy the file, a message appears that I need administrator permissions to open it! Similarly, some programs that create other files (images, for example) must be open as follows so that you can actually save a picture: right click > run as administrator . If you do not open the program in this way, access is denied when you try to save a picture. But back to my account. Like programs, is it possible that I can 'copy as administrator' or 'cut as administrator'?

    I discovered how to copy and paste files using a single command line. Unfortunately, you can't copy the files, not folders. Here's how to copy a file:

    1. Open command prompt
    2. type "copy" without the "sign, while simple letters
    3. press the SPACEBAR once
    4 type the location of the file you want to copy (for example: C:\Users\default_user\file.txt)
    5. press the space bar once more
    6. type in the destination that you want to copy the file (for example: Folder\destination C:\New folder)
    7. press enter and your file should be copied.

  • Error 0 x 80070079 windows 7 x 64 win7 - when you try to copy large files to USB. The semaphore timeout period has expired. Help, please!

    Any file larger and begins to copy and Quen stops about 95 to 98% before its finshed. This is some time and comes back with an error 0 x 80070079: the semaphore timeout period has expired. If I boot in safe mode, I get the same thing. I applied http://support.microsoft.com/kb/976972 and it did not help me. Help, please!

    I have Dell XPS9000, Win7 Premium, x 64, I7/920, Nvidia 260, 12 GB of RAM

    Hello

    Thanks for the reply Thahaseena. I think a lot of people have the same problem and it's partially the fault of Microsoft. It is the solution of the problem that works for most people if the heart of the problem is corrupt USB driver (s). The USB driver might get damaged due to defective USB device. This was my case. I bought the 16 GB Sandisk USB which has serious problems. It seems that it is real default, rather than fake. However, I am still investigating.

    This is what happens:

    -Start the copy of the file and at one point gets stuck. After all, you get that infamous error 0 x 80070079. If you try to shoot this defective USB before the error pops out, it's really dangerous abduction of USB that could cause corruption of the driver for the USB controller. This happened to me. So, after this point, none of the USB devices will be capable of the greatest copy files 1 GB +, because my USB drivers are now corrupt and and the transfer is slower. Fast devices and more small files work great, but if you have low speed USB 2.0 device it will not be able to complete the transfer of files at one time and you will receive the error.

    Solution:

    -Stop using the defective device to avoid a repetition of the problem (if you know who is defective). If you do not know, must be eliminated one by one.

    -Disconnect all USB cables except the keyboard cable (at least that is not based USB)

    -Use tabs and the arrows on the keyboard to get to Device Manager

    -Remove all usb drivers, including the one that is connected to the keyboard

    -You may need to force the closure - the dawn of the computer.

    -Do not turn on computer. Get on your knees and unplug the power cord. If you forget this step, the process of booth PC will load faulty driver again. (faulty or bad it depends on the scenario)

    -By unplugging the power cord and let it stay for at least 5 minutes, you force your PC to renegotiate the devices and drivers

    -Connect all USB cables

    -Check the usb status icon in the status bar. Sometimes, you may need to restart the computer if windows asks you to do. Restart the computer if you are not sure what I'm talking about.

    - and... Here we are. Bingo!

    Now, if you plug the faulty device once again, you will need to repeat the process. However, in my case I return to the seller or the manufacturer for repair. You can use this procedure to force the outcrop of USB drivers. That's why I say I blame partially Microsoft for that matter because there is no utility or command available to force this action automatically do that when the problem occurs. This could potentially help people with the question when a few USB ports stop working if its pilots involved.

    If it worked for you, please press useful Votes.

    Thank you.

    Ntongo

  • 0 x error 80004005 When you try to copy a file

    I try to move items to a file that I downloaded and unpacked.  Whenever I try to copy and paste it into another file I get the error 0 x 80004005.  I am running vista Home premium with Service Pack 2 installed.  I have a feeling that something is wrong with the unzipped file, but I don't know how to fix it.
    Thanx

    Rather than copy / paste should you be import or export this data?

    I ask the question after a very quick glance at these kinds of links.

    http://www.google.com/search?q=copy+a+.xmp+file+to+Adobe%5CCameraRaw%5CSettings&sourceid=ie7&rls=com.microsoft:-to the: IE-SearchBox & oe and ie ==.

  • Trying to create a bootable Windows 7 x 64 Flash drive. Get the "invalid MS-DOS function" error message when you try to copy the file 'bootsect.exe.mui' of the Windows ISO on Flash drive

    The title pretty much everything said.  I have an installer the ISO of Windows 7 Professional x 64.  I am trying to create a bootable flash drive using these instructions:

    http://www.OSNews.com/story/20795/Installing_Windows_7_on_the_Aspire_One_or_Any_Other_Netbook

    I followed all the steps in the guide without problem.  Windows Explorer shows the drive is NTFS.  I can copy all other files of ISO on the FlashDrive without problem.  Only, I can't copy this file.  I tried to copy it to my hard drive rather than on the flash drive, and it still does not work.

    I tried to create a file with the same name by using Notepad to see if there was a problem with the file name.  I can copy this file on my hard drive flash drive, but I can't always copy the ISO file.

    I am running Windows 7 Home Premium x 64 edition and using a Corsair Flash Voyager 16 GB flash drive.

    Help, please!

    Download Windows 7 USB/DVD tool
    http://store.Microsoft.com/help/ISO-tool

    Create a bootable USB:
    http://www.victorchen.info/create-a-bootable-USB-memory-stick/

    Install Windows 7 from USB drive/key
    http://www.MaximumPC.com/article/HOWTOs/how_to_install_windows_7_beta_a_usb_key
    http://www.windowsvalley.com/blog/install-Windows-Vista-and-Windows-7-using-bootable-USB-storage-device/
    http://www.intowindows.com/how-to-install-Windows-7vista-from-USB-drive-detailed-100-working-Guide/
    http://TechNet.Microsoft.com/en-us/magazine/dd535816.aspx

    How to install Windows 7 from a USB drive without Windows 7 ISO DVD
    http://www.Blogsdna.com/2016/how-to-install-Windows-7-from-USB-drive-without-Windows-7-ISO-DVD.htm

    How to install Windows 7 from a Flash drive with XP or Vista:
    http://www.legitreviews.com/article/1031/2/

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • When you try to copy a. DAT in Vista file, get error 0x80070057L, the parameter is incorrect

    I tried to copy a *. DAT file from a CD on my HARD drive. During the last 5 seconds, I always get the following error message:

    Error 0x80070057L the parameter is incorrect

    I am able to open the file, but can not copy. I tried on my laptop (Vista SP1) and on an another desktop running XP and get the same error.

    What causes this problem?

    Hello

    The problem occurs when you try to copy other files?

    Check if you can copy files in Mode without failure.

    Refer to this article for help:
    http://Windows.Microsoft.com/en-CA/Windows7/start-your-computer-in-safe-mode

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • I get an unknown error message when you try to copy a cassette of my video camera, but the camera connect

    I get an unknown error message when you try to copy a cassette of my video camera, but the camera connect

    If you are running Windows XP... There is a slight chance
    that by running the following command would be the fix:

    Reach... Start / run... and type or copy / paste the following text:

    regsvr32 %windir%\system32\qdv.dll

    Then... Press on... Come in...

    You should see a dialog box stating:

    DllRegisterServer in C:\WINDOWS\system32\qdv.dll successful

    Good luck...

    There is debate on this subject in the following forum:

    Windows Movie Makers Forums
    An unknown error has occurred

  • When I try to copy the files from Windows Mail on Vista on a USB key I get the message "you are about to copy this file without its properties

    I move the file from my old PC which took place with Vista on a new computer running with Win 10 where I have Windows Live Mail is installed.  When I try to copy the files from Windows Mail on Vista on a USB key I get the message "you are about to copy this file without its properties".  After studying this issue on the forums, a proposed solution was to reformat the drive in NTFS format, I did.  This does not solve the problem.  Any suggestions?  Would it be OK in this case to ignore the message and copy the file without its properties?

    Well data files/user of vista should work. Yes a NTFS format is good, go to run, or cmd, type:

    diskmgmt.msc in msc, R.click on the material, delete the partition, create one, format. Use the default settings,

    Once thru, L.click the disk, go to actions, all, select 'enable '.

    In addition, live windows for vista is microsoft discontinud

  • Computer hangs when you try to watch live TV through windows media centre__

    Computer hangs when you try to watch live TV via windows media Center
     
     
     
    Signature of the problem:
    Problem event name: BlueScreen
    The system version: 6.0.6001.2.1.0.768.3
    Locale ID: 3081
    More information about the problem:
    BCCode: a
    BCP1: FFFFFA600C193FF8
    BCP2: 0000000000000002
    BCP3: 0000000000000001
    BCP4: FFFFF8000233499E
    OS version: 6_0_6001
    Service Pack: 1_0
    Product: 768_1
    Files helping to describe the problem:
    C:\Windows\Minidump\Mini112509-01.dmp
    C:\Users\user\AppData\Local\Temp\WER-132569-0.SysData.XML
    C:\Users\user\AppData\Local\Temp\WERCC53.tmp.version.txt
    Read our privacy statement:
    http://go.Microsoft.com/fwlink/?LinkId=50163&clcid=0x0409

    Hi Eddie Hunt

    Welcome to the Microsoft Answers Forum!

    I suggest you try this method and check if it is helpful

    Method 1:

    Start your computer in a clean boot and check what third-party software or program is at the origin of the problem. To help resolve the error and other messages, you can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to run check and clean boot if you have the problem.

    i. Click Start, type msconfig in the search box and press ENTER.

    II. If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    III. in the general tab, click Selective startup.

    IV. under Selective startup, clear the check box load startup items.

    v. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    VI. click OK.

    VII. When you are prompted, click on restart.

    VIII. after the computer starts, check if the problem is resolved.

    If the problem is solved, check what third-party software or program is at the origin of the problem, referring to the link given below:

    Clean boot

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    i. Click Start, type msconfig.exe in the start search box and press ENTER.

    II. If you are prompted for an administrator password or for confirmation, type your password, or click on continue.

    III. on the general tab, click the Normal startup option and then click OK.

    IV. When you are prompted to restart the computer, click on restart.

    Method 2:

    Install the latest codec package and check if that helps, link below will help you with the same:

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=06fcaab7-DCC9-466B-b0c4-04db144bb601&displaylang=en

    Method 3:

    Update the graphics card. Steps to update the graphics card:

    i. click on start, type devmgmt.msc and then on enter.

    II. develop the graphics card and right click on the sub element and click on update driver.

    Link for reference: problems with watching TV on your computer

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • File modified icons and error when you try to copy files: 0 x 80070052

    ll of a sudden, I found my Word document files, pdf and other files differnet looking and I got this message eorro 0 x 80070052 when I tried to copy

    I tried to solve this problem, but I forgot:

    I have norton antivirus on my pc and windows vista, I suddenly found that all my files (documents, photos odfs... etc) all have a strange icon placed in the original top icon it looks like Media Player. I can open them on the pc, but I have treid to opencoy to my USB, he initially said no space and I deleted files. ND, then I tried to copy these fields to it, I got this error message:

    0 x 80070052

    and I think that it is aa problem with my antivirus it diesnt run correctly.

    pelase advise I can't afford lossing my documents.

    Thank you

    Hello

    Error 0 x 80070052 occurs usually when you try to copy files to an external storage device. You can format the drive to the FAT32 file system format and check if this solves the problem.

    Come to your icons of files problem, I suggest you perform a system restore to restore the computer to an earlier point in time before the problem occurred.

    See these articles for help:
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • Muse crashing when you try to copy guides

    Muse was crashing when you try to copy guides from Master Pages.  Anyone else having this problem?

    ozgazl wrote:

    Same for me - if I try to 'cut' a guide to remove it, adobe muse crashes with the following:

    Yes everyone who arrives, you can not copy or cut a guide... the bug is that Adobe put the option to when you click right one

  • When I try to copy a file to an external device using Windows Explorer I get the following error message: "cannot copy. The directory or file cannot be created. »

    original title: could not copy files

    When I try to copy a file to an external device using Windows Explorer I get the following error message: "cannot copy.  The directory or file cannot be created. "I understand that I may have the physical limit of USB keys for the root directory.  How can I fix it?

    Hi GloriaZF,

    What is the size of your external hard drive and what is the available free space? Open my computer-> right click on the external hard drive-> properties. You will not be able to copy more data if the disk is full, or who have less space compared to the size of the file you are trying to copy.

    You need to remove the order data to make the space more. Deleted data from the device USB will be permanently deleted and will not be stored in your Inbox, so take care while eliminating unnecessary data.

    I hope this helps.

  • Micro adapter USB keeps disconnecting when I try to copy the files.

     
     
    Micro adapter USB keeps disconnecting when I try to copy the files.

    Hello

    I have a Micro SD card reader, when I insert my memory card into the reader, he comes and stays there until I try to transfer files to the memory card, or if I run a h2testw test it disconnects.

    Its getting boring, I bought another card reader, but the same problem persists. I tried the drive in my computer and it seems to have worked here, but just on my laptop, I'm having problems.

    Any help will be appreciated, thanks in advance!

    Hello

    1 did you change on your computer?

    2 did you receive an error message?

    I suggest you to check with the other USB port.

    Method 1:

    Tips for solving common driver problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

    Method 2:

    I suggest you to remove and reinstall all USB controllers

    To remove and reinstall all USB controllers, follow these steps:

    (a) click Start, click Run, type sysdm.cpl in the Open box, and then click OK.

    (b) click on the Hardware tab.

    (c) click the Device Manager button.

    (d) expand Bus USB controllers.

    (e) right click on each device under the Bus USB controllers node and then click on uninstall to remove them one at a time.

    (f) restart the computer and reinstall the USB controllers.

    (g) connect the removable USB storage device and perform a test to ensure that the problem is solved.

  • Process Explorer error BES when you try to browse the files and folders; and Internet Explore AppHangB1 when you try to attach files to download in Windows 7.

    Hi everyone, auggy,

    I really hope you can help me with a problem I have on a single workstation at my office.  It is an accumulation of 32-bit Windows 7 running MS Office 2010 Standard.  It differs from other generations in our office because it is used by the head of the team of our accounts, and so it has a number of custom pieces of software that she only needs access (payroll software, etc.).

    All the basic features of the computers seem to be well, except the two following, and I would really like to help get to the bottom of it.

    (1) process explorer error when you try to browse the files and folders of BES.

    I can call Windows Explorer absolutely perfect and be sailing away on his machine, and then suddenly the process explore will die, with the following error: -.

    Signature of the problem:

    Problem event name: BEX

    Application name: explorer.exe

    Application version: 6.1.7601.17567

    Application timestamp: 4d6727a7

    Fault Module name: StackHash_0a9e

    Fault Module Version: 0.0.0.0

    Fault Module Timestamp: 00000000

    Exception offset: 03e2f944

    Exception code: c0000005

    Exception data: 00000008

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 2057

    Additional information 1: 0a9e

    More information 2: 0a9e372d3b4ad19135b953a78882e789

    Additional information 3: 0a9e

    Additional information 4: 0a9e372d3b4ad19135b953a78882e789

    Read our privacy statement online:

     http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    I can start windows Explorer, and it will happen again--it's a repetitive event.

    (2) Internet Explorer AppHangB1 when you try to attach files to download

    I think that these two errors may actually be related, like IE (and Chrome as well by the way, this be why I think that the two issues are related) works fine, until I just any type of site where I need to download a file.  This happened in the light, as our Chief of accounts needs to download a flat file in a room online banking software.  What's going to happen (and, again, this can be repeated as needed) is: -.

    (a) you need to click on which will generally be a "Browse" button

    (b) a traditional dialog box opens, but instead which allows you to navigate to the location and select the folder you want, he immediately greys out as if the process explore is falling.

    (c) shortly after, the following error is returned: -.

    Description:

    A problem caused this program blocking interact with Windows.

    Signature of the problem:

    Problem event name: AppHangB1

    Application name: iexplore.exe

    Application version: 11.0.9600.16521

    Application timestamp: 53114399

    Hang Signature: ffae

    Hang Type:                                          513

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 2057

    Signing of additional blocking 1: ffaeadd6649c2780023c6d9ea230850d

    Signing of additional blocking 2: e32d

    Signing of additional blocking 3: e32d1064528f9bd1cbe46cdd0db7b0f1

    Signature of blocking additional 4:0498

    Signing of additional blocking 5: 0498e046eb6db4d68a7cd9b11dab2644

    Signing of additional blocking 6: effb

    Signing of additional blocking 7: effb796b5c1ff7f6708d2722fa7c24bd

    Read our privacy statement online:

     http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    On auggy recommendation, I've set up a registry key insert that returns the explorer.exe hangs in a dump file, and I am trying to load two reports on SkyDrive - I'll post the URL in this thread as soon as I finished it.

    Can someone help me please?

    Thank you very much!!

    David.

    Hi auggy, Andy,.

    Well... in a way, I am very disappointed, but we will respond to it.

    Andy, I checked and iCloud, Control Panel has not been installed on its terminal, but thank you very much for suggesting it :)

    auggi, when I got back on my colleague's PC, I thought I would test to see if the feature didn't always before considering saving data dumps etc, and it worked fine!

    I left it overnight with instructions for the lady who uses the PC to test this morning and see if it's all workers, and it is still, it seems that the fix does not immediately solve the problem of browser, but there later - maybe after a second reboot or something... very strange!

    In all case, this matter can now be considered closed, so all that remains for me to say thank you very much for your help, you are amazing :)

    All the best, very, very,.

    David.

Maybe you are looking for