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

Robocopy as another user

Problem: Robocopy not launching as another user in Start-Process The script works fine when running on an account that has the permissions for both file locations but it just doesnt seem to be accepting the -credential param. Unsure if my formatting…
Drew
  • 3,814
  • 2
  • 9
  • 28
6
votes
1 answer

Remove percentages from robocopy log

I'm using an older version of robocopy that includes percentages in the log even if the /NJH and /NJS paramters are set. So I'd like to remove the percentages from the log: 72880735 H:\1.txt 100% 33038490 …
RMK
  • 107
  • 1
  • 1
  • 11
6
votes
3 answers

How to get trigger details associated with a task in task scheduler from powershell

So, basically i need to get the trigger details associated with a task which is created in task scheduler. So, basically I want these information which i am going to be set in this trigger window such as its daily or weekly and repeat task duration…
Tyler Durden
  • 207
  • 1
  • 5
  • 10
6
votes
1 answer

Robocopy in TFS Build PowerShell Step Reports Failure But Has No Error

My powershell script runs without error reported in the log file, but the TFS 2015 build step reports an error. Do I need to perform a special call back? This is a new style build, not a XAML based one. The script is nothing special, it calls…
NikolaiDante
  • 18,469
  • 14
  • 77
  • 117
6
votes
2 answers

How to reuse a Process instance with slightly different ProcessStartInfo instances?

I have the following code that starts robocopy as a Process. I also need to do database queries to determine which directories I need to copy each time robocopy is called so I used ProcessStartInfo to control the arguments passed. internal class…
rexcfnghk
  • 14,435
  • 1
  • 30
  • 57
6
votes
1 answer

Robocopy invalid parameter #3

Here is my batch content Robocopy.exe D:\IDRIVE\New backups\Program\full\1 D:\IDRIVE\New backups\Program\full\2 pause But in cmd it's showing ------------------------------------------------------------------------------- ROBOCOPY :: …
Vishnu Murali
  • 75
  • 1
  • 2
  • 7
6
votes
4 answers

robocopy script : Insufficient system resources

I have a script that was working before. A robocopy script. The backup server broke and the new one misses some configuration, but I'm not a windows guy. :'( The script is the following: C:\Windows\system32\Robocopy F:\Equipos…
Marc Riera
  • 311
  • 2
  • 5
  • 19
6
votes
2 answers

How to pass parameters with spaces as an array to RoboCopy in Powershell?

I am working on a script that needs RoboCopy switches to be passed in dynamically based on user input, hence using array seems like the best option. However I see the following issue when using I specify parameters like /XF that have a space and…
Nitin Badole
  • 495
  • 6
  • 12
6
votes
2 answers

How to prevent Robocopy coping an empty top level directory?

Is there a way to utilize Robocopy so that if it is called against an empty top level directory it does not copy it? I am using Robocopy to identify files and directories that are then zipped up within a script - empty directories cannot be zipped…
DevHouse
  • 117
  • 1
  • 3
  • 8
6
votes
1 answer

Paths in Visual Studio post-build event

i have following problem: Because Visual Studio can't handle chain references, i need to copy all "chain reference"-DLLs to my program's bin-folder. For this, i use Robocopy. The only problem is, that my command-line, i enter in Visual Studio…
SharpShade
  • 1,761
  • 2
  • 32
  • 45
5
votes
3 answers

robocopy /MIR - don't delete desktop.ini in destination

I want to sync folders between two computers, one with XP and one with Vista. I want the two folders mirrored, except for security settings and folder settings. It is my understanding that /MIR switch will delete any 'extra' files in the destination…
mcu
  • 3,302
  • 8
  • 38
  • 64
5
votes
2 answers

Using Robocopy to exclude a file extension from the root directory

I have a directory that I want to copy to another directory using Robocopy.exe. My plan is to exclude a few files from the root of the source directory. In fact, I'd like to ONLY exclude .html files from the ROOT of the directory. The trick is that…
Karl
  • 6,793
  • 3
  • 23
  • 21
5
votes
1 answer

Batch file flashing command prompt in endless loop after being executed

Background I want to use ROBOCOPY to backup folders. To learn this, I created a test source folder, containing other subfolders and dummy files. F:\RoboCopy\RoboCopy_Files I am able to ROBOCOPY the source folder from the Command line and…
kolcinx
  • 2,183
  • 1
  • 15
  • 38
5
votes
0 answers

robocopy exit codes ... is robocopy just buggy or am I missing something?

We're using robocopy (file version 5.1.10.1027) to mirror directory trees. robocopy is called by a python script rather than manually. We're relying on robocopy's exit codes to determine whether the operation was successful or not. If successful,…
antred
  • 3,697
  • 2
  • 29
  • 37
5
votes
1 answer

ROBOCOPY summary says Dirs FAILED but shows no error messages

I copied directories with ROBOCOPY, from C: to D: (so disks on the same VM, no network issues). I used options *.* /V /X /TS /FP /S /E /COPYALL /PURGE /MIR /ZB /NP /R:3 /W:3 Shortly afterwards, I did a comparison with the same options plus /L: /V…