Robocopy (or "Robust File Copy") is a command-line directory replication command.

learn more… | top users | synonyms

0
votes
1answer
102 views

Robocopy - how to copy the NEWEST file in catalog?

I want to copy one file that is the newest in whole catalog. How to do it using robocopy? I know /xo and /xn options but it doesn't do what I need.
1
vote
0answers
1k views

ROBOCOPY /MIR (or /PURGE) follows and deletes target symlinks

Let's say we have a folder SOURCEDIR to be synchronized with TARGETDIR. The problem: if TARGETDIR contains directory symlinks, ROBOCOPY /MIR (or /PURGE) will follow the symlink, and delete every file ...
1
vote
1answer
266 views

robocopy /mir changes destination folder name-how to prevent that

When I run a robocopy batch file that reads: robocopy "C:\Users\mgo\Documents" "E:\Documents backup on the UltraBay drive" /mir the destination folder gets renamed to "E:\My documents" WHY? How to ...
0
votes
1answer
238 views

Copy my documents without rename in windows 7

All, Occasionally I use xcopy or robocopy to copy my documents folder as a backup. The issue is no matter what I name it, say MD_Backup, Windows always renames it to My Documents. I'd really like it ...
2
votes
1answer
8k views

How to copy only new files AND only those that are modified after a certain date?

I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUT, I also want to only copy source files that have been changed ...
2
votes
2answers
790 views

Why does Robocopy ignore the /copy flags?

Robocopy Copy Flags? I just recently made an answer here http://stackoverflow.com/a/15211788/891976 where I suggested using robocopy and its /copy flags, but for some as of yet unknown reason, the ...
2
votes
0answers
678 views

Batch file to move/compress/delete files

I am trying to write a batch script that will run automatically daily to do the following: Move files older than 2 days to from the main directory (Jason) to an archive directory. Zip files in the ...
1
vote
1answer
6k views

How to use Robocopy to copy a folder structure into all (sub)folders located under one directory?

Is there anyway for me to quickly take an empty folder structure I have created on my desktop and copy it to 488 other folders all located on a network drive but in the same folder? My primary ...
1
vote
1answer
179 views

Robocopy command to winnow “empty” folders but keep subfolders with files

Have multiple-level folder trees with folders that have files and subfolders, other folders without files but with subfolders. I'd like to copy to a destination but not copy the folders lacking files, ...
1
vote
1answer
227 views

No logfile when combining Robocopy with Task Scheduler

I am trying to create a .bat file with Robocopy and schedule it using Task Scheduler in Windows 7. The issue that I am having is with the creation of the log file. When I click on the .bat file, a log ...
-2
votes
1answer
402 views

Robocopy, starts, then stops [closed]

Hey I know robocopy is capable of bypassing the whole 260 character path limit in windows, so I was going to use it, but I came to a slight problem. When I launched it, the CMD for it pops up for ...
0
votes
1answer
240 views

robocopy from a shared folder using winrm

My goal is to use winrm to connect to a remote machine and then run a robocopy command on this remote machine that results into copying files from a remote shared drive on the network into this ...
1
vote
1answer
354 views

Scheduled Tasks - Display the script [duplicate]

Possible Duplicate: Why is Windows 7 scheduled task running hidden? I have a couple of Robocopy scripts setup in a scheduled task, but is there a way to actually display the cmd prompt with ...
0
votes
1answer
883 views

robocopy from remote server that requires private/public key authentication

I know that the robocopy command will only work with existing drives, not remote servers, so if I'd like to use the robocopy command to run periodic file backups from a remote server, I have to map ...
5
votes
2answers
4k views

How do I hide “Extra File” and “100%” lines from robocopy output?

I have a robocopy script to back up our Kiln repositories that runs nightly, which looks something like this: robocopy "$liveRepoLocation" "$cloneRepoLocation" /MIR /MT /W:3 /R:100 ...
0
votes
0answers
114 views

Disk size data is inconsistant (more then i can hold)

I have several disk partitions, i made then each 250gb. I used robocopy to copy one partition to another I got an error the destination disk is out of space. wtf they are the same size. I right ...
1
vote
3answers
2k views

Robocopy launches and then hangs/just sits there

I'm setting up an archive process to store old files on an external hard drive. The computer in question is running Windows 7 Pro 32bit. We have a server folder with 150,000+ files in it, most of ...
1
vote
1answer
1k views

Can Robocopy monitor files on a time incremenet of less than one minute?

Robocopy has the option to monitor the source directory, and copy over any files that have changes. You can specify how many changes in the directory must occur before copying (/mon n where n is the ...
1
vote
0answers
137 views

Robocopy mir deletes files when network goes down?

I've inheritted some server backups and I heard from the person that if the network goes down while robocopy is running it will wipe all the destination folder if /mir is used. He said it is because ...
2
votes
1answer
4k views

Robocopy, how to log only errors?

Will the options /nfl /ndl be enough and not exclude errors too?
0
votes
2answers
657 views

copy works where xcopy and robocopy does not work

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
1
vote
1answer
283 views

Robocopy prepends drive letter on filepaths even when drive is specified

robocopy /"C:\Users\john smith\Documents\Visual Studio 2010\Projects\project\checker\bin\Debug\/" /"C:\Users\john smith\project\Assemblies/" checker.dll When I run this through the command line it ...
4
votes
1answer
21k views

Using robocopy and excluding multiple directories

I'm trying to copy some directories from a server before I restore from backup (my latest backup was corrupt, so I have to use an older one :( ). I'm in the Windows Recovery Environment and have ...
5
votes
3answers
2k views

delete recursive directory created by robocopy when “The file name is too long”

After running robocopy.exe to backup a C:\Users\ folder without using the /xj switch, I ended up with a recursive directory which was too long. For example, if you run dir /b /s you will receive the ...
4
votes
1answer
8k views

How to copy ONLY those files that are not in the destination?

Is it possible to use robocopy to copy only the files that do not exist in destination? robocopy has a /is (include same files) switch. What I am looking for is an /xs switch. If a file exists in ...
2
votes
1answer
141 views

Can I prompt a user to save a file using windows explorer?

I'm trying to build a windows batch file that will copy a folder and all its contents from the local user directory into an individually named folder on a shared server. The name of the folder on the ...
1
vote
1answer
3k views

Enable Robocopy logs

I have a robocopy job that is controlled by Windows Task Scheduler to run every 15 minutes to move files from one server to another. According to Windows Task Scheduler, the job is running fine. ...
0
votes
1answer
464 views

RoboCopy Log Files missing whitespace?

So I'm working on a script to use RoboCopy to copy a bunch of files, and log what it's copied. It works reasonably well, except for the logfiles. They tend to look like this: ...
0
votes
0answers
1k views

using robocopy to mirror folders as a scheduled task without users logged in

I have two servers, one local user with the same password and username. It will always be a one-way transfer serverA --> serverB. I created a scheduled task that runs (on serverB) robocopy ...
1
vote
1answer
224 views

What flags do i use with robocopy on copy with mod date?

I'm on windows 7 and i like to copy a directory from one drive to another. I want it to be as fast as possible and what i need are Modification date plain file (without attributes like permission or ...
2
votes
4answers
6k views

Does Robocopy Keep a Log File by Default?

I copied a huge number of files using Robocopy, and recived a note at the end that two files failed. I didn't set a switch to save a log file. Is there a log file saved in a default location ...
2
votes
2answers
4k views

What is the benefit of copy over xcopy on the command line?

I know that xcopy has more options however is there some benefit to using copy rather than xcopy?
1
vote
5answers
593 views

How can I copy files from A to B, only including files that exist in B?

Maybe could be hard to explain, but I'll! I'm on Windows 7 Professional, and this is my scenario : Folder "Asd" (C:\) Folder "Asd" (D:\) File 1 File 1 File 2 ...
3
votes
2answers
5k views

How to use Volume Shadows Copy and Robocopy on Win7?

I’d like to backup my system with Robocopy and Powershell, but Robocopy is not able to copy open files. Volume Shadows Copy seems a solution but I can’t find any clear and simple explanation on how to ...
8
votes
9answers
8k views

Robocopy does not copy the root folder and its time stamp

Robocopy does not copy the root folder and its time stamp - it copies all subdirectories and files (when the appropriate options are set) and there seems to be no option/argument to tell Robocopy you ...
0
votes
2answers
938 views

Which file does robocopy copy first?

In my C# application, I am using robocopy for with option /s for copying sub folders also. Suppose I have files & folders from the last month. Which file will it copy first, the latest one or ...
0
votes
1answer
820 views

getting “Invalid Parameter #10” when attempting to copy folder using robocopy

I'm trying to copy a folder on my internal hard drive to my external hard drive using robocopy with the following command: robocopy "source folder" "destination folder" *.* /E /DCOPY:T /COPYALL ...
2
votes
1answer
213 views

Robocopy on network as part of a pipeline

I have the following pipeline: [other vendor] sends files to my Windows filesystem, which are indexed starting with the next unused number (normally file.001) I move the files with RoboCopy to my ...
2
votes
2answers
193 views

What is the fastest way to mirror a directory tree on a DVD to a local hard disk in Windows 7

Recently I had DVD with a folder that contained over 83,000 files and folders. When I went to mirror this folder onto a local harddrive with ROBOCOPY I quickly discovered that more than an hour had ...
5
votes
2answers
1k views

How to wake a network drive from batch script?

I have a batch script which runs a robocopy. It is failing because the drive is not awake. In windows explorer, doubling clicking on that icon "wakes" up the link and the cross disappears and the ...
1
vote
2answers
1k views

CMD MOVE can't replace directories in WIN 7

The MOVE command does not work when to ovewrite a directory. I have also tryed to run cmd with admin rights. I'm posting this question with more info so you can easily test it self. Make your own ...
1
vote
0answers
154 views

“Access denied” when trying to move a directory in Windows 7 [duplicate]

Possible Duplicate: Access denied, cmd move windows 7 I can't use this command in Windows 7 when I want to move a directory. If the destination exists, it says "Access denied". Why does ...
0
votes
3answers
9k views

Access denied, cmd move windows 7

I can't use this command in win 7 when want to move a directory if the destination exists. It says Access denied. Why hapens this? It worked in XP. move /y "%1" c:\mydir\ I can use robocopy, but ...
1
vote
0answers
301 views

Windows Junction / Move File Issues

I am working on a computer where I am moving C:\Users\User to D:\Users\User and I am going to create a junction. All files moved successfully during the move except: My Pictures My Videos ...
1
vote
1answer
919 views

Robocopy ignores /D switch

I am trying to use robocopy to move files from a source directory to a destination directory. The problem is that an inetpub mail process monitors the destination directory, and quickly locks and ...
2
votes
2answers
337 views

Are junctions affected if the drive is formatted?

I was trying to relocate my user profiles, so that they are not affected by any problems occuring in the drive on which the operating system is stored. I've managed to move user profiles using ...
0
votes
1answer
2k views

Only output header and summary with robocopy.exe

I'm using Robocopy and just want it to output the header and summary, hiding everything else. I've looked at the Robocopy syntax and have tried: /NC /NFL /NS /NDL /NP However I'm still getting this: ...
0
votes
1answer
3k views

Robocopy copying files from source to destination in backup mode and with file security permissions intact

I need to utilize robocopy to mirror files and folders from one shared location to another shared location, in restartable backup mode with security permissions. My current command is: robocopy ...
27
votes
3answers
27k views

What does robocopy mean by tweaked, lonely and extra?

The robocopy documentation for the option /it is simply Includes "tweaked" files. What does tweaked mean? The robocopy documentation for the option /xl is simply Excludes "lonely" files and ...
2
votes
4answers
5k views

Copy files from FAT32 to NTFS, preserving date

I have a FAT32 flash drive full of old archived emails, and their creation/modification date is important because it represents when the email was received. I'm trying to copy these over to another ...