Questions tagged [robocopy]

ROBOCOPY.exe - "Robust File Copy" is a Windows command line file & directory replication utility published by Microsoft.

ROBOCOPY.exe

Robust File Copy is a Windows command line file & directory replication utility published by Microsoft.

It is included with Windows Vista & later versions & is available for download for older versions of Windows as part of the Windows Server 2003 Resource Kit Tools.

References:

1005 questions
4
votes
1 answer

Powershell Copy files from multiple subfolders to single folder ignoring duplicates

Total N00b to Powershell and have already got a script that uses Robocopy to copy files and their directory structure to another folder, and a second that then copies them from the subfolders to the root folder. Yes, I've tried searching but can't…
mandrill
  • 91
  • 1
  • 8
4
votes
2 answers

Vbscript - Creating a script that mirrors several sets of folders

Ok, this is my problem. I'm doing a logonscript that basically copies Microsoft Word templates from a serverpath on to a local path of each computer. This is done using a check for group membership. If MemberOf(ObjGroupDict, "g_group1") Then …
Kenny Bones
  • 5,017
  • 36
  • 111
  • 174
4
votes
3 answers

Get file list with Robocopy

I'm trying to see if a solution with Robocopy could be faster than using the Get-ChildItem for getting a list of files that are inside a given folder (and subfolders...). In my code I'm using the Get-ChildItem cmdlet to get a list of all files…
m_power
  • 3,156
  • 5
  • 33
  • 54
4
votes
1 answer

Robocopy for Windows 2003 doesn't support /DST option

Does anyone know if it is possible to download the latest robocopy for Windows 2003. The latest version provides the /DST option which ignores time stamps changed due to BST (British Summer Time). Every time we do a build and sync our servers when…
jaffa
  • 26,770
  • 50
  • 178
  • 289
4
votes
2 answers

Robocopy script that created folder in destination with date

I'm trying to write a script that copies a folder every week night. I would like it to create a folder each night in the destination directory. So I'm trying to make a script that copies "C:\logs" to "I:\logs\today's date" So the destination folder…
InDiSent
  • 43
  • 1
  • 1
  • 3
4
votes
2 answers

Robocopy: /move parameter not working correctly

I'm using a robocopy batch script to move files from one server to another, but I need it to delete the files on the original server after it is done (which should happen when you use /move). The copying works fine, but the files and folders aren't…
Andreas
  • 2,007
  • 5
  • 26
  • 37
4
votes
3 answers

Robocopy to copy files to a remote machine

I'm trying to write a robocopy command to copy files from my local computer to any one of my deployment servers ROBOCOPY ../../MyService/bin/release/ \\remote-computer\\C:\services\myservice /MIR and I get this error The system detected a possible…
Neil
  • 5,179
  • 8
  • 48
  • 87
4
votes
1 answer

Robocopy - File names with an Ampersand

So I have a pretty basic batch script that looks at an incoming folder and based on file type moves files where I want them. Now folders that show up with "&" in them break it. How do you go about fixing this? I couldn't find an obvious answer…
urbanrider
  • 231
  • 5
  • 14
4
votes
3 answers

Why? ROBOCOPY: ERROR 32 (0x00000020) Accessing Destination Directory. The process cannot access the file because it is being used by another process

Thanks in advance for your help. I am using ROBOCOPY to copy some files from on drive to another on the same computer. Every once in awhile, I get an error. And instead of retrying 999 times as it should, it retries once and fails. I have a couple…
user1340654
  • 395
  • 2
  • 5
  • 16
4
votes
4 answers

Automatically copy files without overwriting, but creating numbered ones instead

I need to copy files at a regular interval, eg once an hour so I tried setting up an xcopy batch saying it should copy the files it needs to copy to another folder. Now when it copies, it overwrites the files which is not what it is supposed to…
Robin van Dijk
  • 827
  • 7
  • 18
4
votes
2 answers

Standard output and error output from robocopy in a batch file

I use robocopy in my batch file to copy folders. I want standard output to go to one log file and error messages to go to another log file. I tried the following: robocopy Z\BR "C\WIN" /E /LOG+:STANDART.LOG 2 /LOG+:ERROR.LOG but "if there are…
zipi
  • 633
  • 5
  • 12
  • 20
3
votes
0 answers

robocopy to preserve some extra files

I have a problem with robocopy and with extra files in particular. I would like to run robocopy to keep two directories almost in "sync" and thus it would be natural to use the /MIR option along with /MON:x to keep the process alive. I need to copy…
toto
  • 110
  • 1
  • 6
3
votes
1 answer

use robocopy for copy bigdata in python

i have this code for copy data : from subprocess import call, check_call call(["robocopy",'\\\\127.0.0.1\\Backup', '\\\\127.0.0.2\\h\\SQL BACKUP\\a',"/S"]) How can I access the data inside the terminal ???? I need to have access to the values…
ashkan
  • 530
  • 3
  • 11
3
votes
1 answer

robocopy keep smaller file

Is there a way to have robocopy copy files from one directory into another overwriting files with the same name so that the destination directory will contain the smaller file. so for example dirA -- file1 (12Kb) -- file2 (2Kb) dirB -- file1…
rabs
  • 1,807
  • 3
  • 18
  • 29
3
votes
0 answers

Robocopy: how do I see what files failed?

I was using robocopy to restore some backed up data after a hard drive failure. When it finished, it gave a list for some stats, and said that 11 files failed. How do I find out what files failed? I can run it again but each time I get the same…
Marscaleb
  • 31
  • 2