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
10
votes
2 answers

How to delete "The file name is too long." in windows. [Command Prompt]

How to delete large file path/file name files in Windows. Which is slimier to Linux rm -rf . ?
Ashish Dadhich
  • 4,737
  • 4
  • 17
  • 25
10
votes
6 answers

Using robocopy with source and destination as variables

Completely new to scripting, tried to find a solution through searching the web but I'm stumped, so asking for help please! I'm trying to use robocopy with a variable as both the source and destination, different one for each, but I just can't get…
lcllm7
  • 101
  • 1
  • 1
  • 3
9
votes
1 answer

How to exclude .svn folders with robocopy

does anyone know how to exclude .svn folders with Robocopy? I want to copy all folders but I want to prevent to copy the subversion folders that svn creates. Any ideas on this? Thanks in advance.
Teun Pronk
  • 1,367
  • 12
  • 24
9
votes
1 answer

robocopy causes exit(1) on success

I am trying to invoke this code in jenkins rem copy installation to output folder set src="C:\code\EPMD\Installer\inno setup\Output" set dst="c:/test_installs/Calibration/%version_name%" call robocopy %src% %dst% /MIR /E /is /it The code runs and…
Gulzar
  • 23,452
  • 27
  • 113
  • 201
9
votes
3 answers

Are there any API wrapper of Robocopy?

Robocopy is the best reliable and feature rich way to batch copy files on Windows. However, it is a command line tool. I am looking for a library/API that I could do the same in my program. I tried to use Process.Start(), but then I have to capture…
Dennis C
  • 24,511
  • 12
  • 71
  • 99
9
votes
1 answer

Robocopy appears to do nothing when /MT flag is used

This command works: robocopy \\build7\d$ d: *.* /mir /XD "System Volume Information" /XD "$Recycle.Bin" But when I try adding the /MT flag: robocopy \\build7\d$ d: *.* /mir /XD "System Volume Information" /XD "$Recycle.Bin" /MT The only…
PortMan
  • 4,205
  • 9
  • 35
  • 61
9
votes
3 answers

robocopy MAXAGE / MINAGE value with hours and minutes

I am trying to copy files from server to another server every hour as files being created. I was using Robocopy for copying file, and its very useful. But now I am really stuck with this. I need to copy files with MINAGE value of minutes, something…
Josh
  • 1,009
  • 2
  • 13
  • 25
8
votes
2 answers

Scheduled task : Error 0X3 but Log doesn't give any error

I have several tasks using Robocopy.exe, On One of those tasks, I get a error result 0X3 but the log file doesn't display any error. Here is the command : ROBOCOPY \\X\L$\FORMATION \\Y\O$\FORMATION /MIR /sec /W:2 /R:5 /log:c:\O_journal.log I tried…
Spoot
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

Psake and robocopy failing

Robocopy will exit with a code above 0 and still possibly not be a failure. PSake detects anything above 0 as a failure and fails the build. This is fine, but how come this still fails: task Deploy { robocopy $source $dest /NP /S /XO…
chum of chance
  • 6,200
  • 10
  • 46
  • 74
7
votes
3 answers

Robocopy moves files older than

here is my script to move files older than a certain amount of days- mkdir F:\TempRemoval robocopy "F:\Example" "F:\TempRemoval" /move /e /minage:1 del "F:\TempRemoval\*.*" /f /s /q rmdir F:\TempRemoval /s /q exit The only problem I have is that…
Jlouisfoster
  • 105
  • 1
  • 1
  • 5
7
votes
1 answer

Run Robocopy in "Report Only" Mode

I have a fairly simple robocopy command here that I want to run that will upload files to an Azure storage account. The problem I have is I'm looking at approxiately 70,000 files but a lot of these already exist in the storage account. What I want…
Bevan
  • 1,305
  • 1
  • 11
  • 17
7
votes
1 answer

What's the algorithm behind Robocopy?

I am curious to know what makes Robocopy (Robust File Copy) so fast and robust. Any body knows what is the API/Algo used for Robocopy? Anybody studied Robocopy? I am asking since I have to write a method (in .NET/C#) which will copy…
Martin
  • 39,309
  • 62
  • 192
  • 278
7
votes
1 answer

Robocopy all files except with particular character in filename

Using robocopy command I need to copy all files, but exclude files with particular character in the filename? For examlple copy all .jpg files with filenames containing underscore _ in it. I have tried this command, but it doesn't work: Robocopy…
J3FFK
  • 664
  • 3
  • 14
  • 32
7
votes
4 answers

robocopy error with ERROR 32 (0x00000020)

I have two drives A and B. Using a python script I am creating some files in "A" drive and I am running a powerscript which copies all the files in the drive A to drive B in the interval of 1 sec. I am getting this error in my…
rabi shaw
  • 441
  • 1
  • 3
  • 14
6
votes
0 answers

Robocopy Summary Times not correct

I've set up a robocopy script and it functions correctly. However, within the summary in the log file, the Total Times does not make sense to me as the job runs for about 109 minutes, but total returns 3:39:06? Can someone explain why this looks…
Omen9876
  • 721
  • 1
  • 5
  • 7
1 2
3
66 67