Over 1 million tech questions and answers.

Robocopy and same directory

Q: Robocopy and same directory


With the Robocopy command of Windows 8.x, how do I do a copy of a file (renaming it) in the same directory of the source file?



Preferred Solution: Robocopy and same directory

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Robocopy and same directory

You can't. Use copy or xcopy if you want to rename.
xcopy c:\test\old.txt c:\test\new.txt

Note xcopy will always prompt you with "Does c:\test\new.txt specify a file name or a directory name on the target" so you would probably be better off with
copy /v c:\test\old.txt c:\test\new.txt

where the /v verifies the copy.

Read other 1 answers

I have used ROBOCOPY to tranfer a large file from or to a USB drive and the destination Directory on both occassions has beeen chnaged to a hidden system directoiry, which could not be seen in Windows explorer or through command line access, even with the
"Show hidden and System files" set on in the view properties window.
The command executed was ROBOCOPY {source drive} {destination drive\folder} /MIR
The command echoed all the actions performed during the copy and displayed a successful copy command summary at the end.
To enable windows to see the directory I had  to either type the directory in the explorer address bar, or use the command prompt to change the attribute of the directory as follows "attrib -h -s d:\Films", whereupon the directory was visible in windows
Can anyone suggest a way out if this wwithout the need to execute the attribb -h -s command after every ROBOCOPY command?

A:ROBOCOPY hides destination Directory

Thanks for posting in Microsoft TechNet forums.
I just performed a test using above command without any problem. I am assuming it is due to the USB drive itself, it may be infected by viruses or malware. Regarding
this, I would like to provide the following suggestions:
Use ROBOCOPY to copy files to the built-in hard drive to see if the issue occurs.
Manually copy the files to the external USB drive to see if they are hidden.

Update the security software and perform a full scan.

Format the USB drive to remove suspicious files completely and perform ROBOCOPY again.
Best Regards
Dale Qiao
TechNet Subscriber Support
in forum. If you have any feedback on our support, please contact
[email protected] remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?

Read other 25 answers

Hi all,
I was running robocopy for 1 TB of DATA. There was no failure or mismatch of file/directories. But what I can see, it copied 57000 directories and also skipped 57000 directories.
Is it because of I have used /MT switch ?

Read other answers

I want copy a list of folders (a few hundred) to a new location. I tried using robocopy but can only get it to either copy the selected folder or all folders with subfolders. What I want is to only copy one level of folders and not the subfolders within.
C: Drive (the source) ->Clients->Client 1
->Order1 ->More SubFolders
->Client 2 ->Order1
->Client 3
->Client 4
So I would want to copy over just the first level of folders (the list of clients), but none of the subfolders within each client folder.

any help would be great.

A:Robocopy? Copy Directory Structure 1 level


Try using the /LEV:n switch in your robocopy command.

From robocopy /? at command prompt

:: Copy options :
/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/LEV:n :: only copy the top n LEVels of the source directory tree.
It should look similar to this:

robocopy C:\Clients G:\Backup\Clients /LEV:2
Perform some tests to make sure it works OK.


Read other 3 answers

I have a Robocopy batch file that works wonderfully when copying from Windows to a USB, NAS or server share.  I recently tried to use my Microsoft OneDrive as the target but could not get it working.  I mapped a drive using the WebDav address.
 This works fine and using Windows Explorer I can create folders, etc.  When I try to use Robocopy to copy files from my Win7 PC to my OneDrive mapped drive I get Error 2.  After some testing I am finding that Robocopy will work if the folders
are already in place but if it needs to create a folder it will error.  So it seems as though Robocopy is unable to create the folders it needs to when using a WebDav mapped drive.  Why would this be?  I can create folders in the mapped drive
using command line such as "V:\md testfolder".   

Read other answers

Hello -- I am running a robocopy job to mirror my D:  drive (data drive) to
folder on my external usb drive with 

robocopy d:\ x:\d-drive /mir

after the job finished, the folder x:\d-drive is now hidden and has the system
attribute ---

Does anyone one know why this happens?

Read other answers

I'd like to use Robocopy (I'm using Xcopy now) to copy everything from the 'current' folder. It appears that Robocopy absolutely has to have a path of some sort to correctly work. In Xcopy, we were able to runXcopy *.* C:\somedirectory\If I try the same in Robocopy I get a an error"No Destination Directory Specified"Orange County District Attorney

A:Robocopy - Wildcard to copy everything from current source directory

Hi Sandy,

It's true ROBOCOPY doesn't handle wild cards, but what you're after is still possible:

Say I want this:

C:\temp> robocopy *.* c:\temp2\

I'll get the error you get - "No Destination Directory Specified"

BUT, if you try this:

C:\temp>  robocopy c:\temp\ c:\temp2\

ROBOCOPY will work and do what your after. Quotation marks can also be used in the above path references.

I suppose one of the reasons for the lack of wildcard support is the fact that ROBOCOPY actually works to exclude files types later with the /XF switch (such as "/XF *.mp3"). More here.

Hope this helps,
Kevin @calwell on twitter.

Read other 10 answers

Hello folks,

I know similar questions have been asked but I "might" have a unique one. What I have been trying to do is to copy the "C:\Users", "C:\Program Files", & "C:\Program Files (x86)" to another clean hard drive "D:\".

I'm doing this to make more room for the OS in the C: drive while date will be in the D: drive. Now I have successfully robocopy Program Files & Program Files (x86). I also have copied most of the Users directory but for this stubborn Real\update directory. This is I think the real player program. I get this Access Denied and "Error 5" error. I am in elevated command prompt. I achieved this via the Repair your computer prompt on the Windows install DVD.

I also have rmdir for Program Files & Program Files and have made a mklink for both of them so windows knows where they will be. But I have not did a full boot because I don't think windows will access my Users directory because they have been moved over to the new drive. What I can only do will have to be via the command prompt.

I can't make a mklink for Users because I get an error saying something about duplicate areas? What I was trying to do is go to this Real\update directory but even trying to access that directory via cd commands will not work, giving me a access denied. Again I am in elevated command prompt "Administrator:X:\windows\system32\cmd.exe How can I get to that directory. I just want... Read more

A:Robocopy - Access denied Error 5 Real Directory

You probably just can't move your program files due to the possibility of config files and registry entries that are looking for your programs on the c drive since that's where they where installed. They should be reinstalled if you want to move them. Also if you move the profiles folder (under c:\user) it will break your profiles and you will need to change the location in the registry. I suggest that you put everything back and just move your personal files, music, pics, & videos on another drive. That should free up a lot of space.

Read other 7 answers

Hi All,

I have one folder A and have another folder B in the same drive E: I need to move all the content from folder A which are more than 2 years old to folder B. Hence when I ran the robocopy it just copied and I lost all disk space in drive E.

My question is even though I used /MOV command why it is not copied and deleted from the source?

robocopy E:/A E:/B /e /MOV /MINAGE:730

Please suggest..

A:Robocopy /MOV command copying but not deleting from source directory

I created folders Test and Test2 on drive E:, copied some files over and under two years old and tested with command

robocopy E:\Test E:\Test2 /e /mov /minage:730
Works perfect. All files older than 730 are moved, copied to destination and deleted from source. I can only think of two possible causes for your issue:System considers files to be newer than 730 days old
A syntax error in your command
Please run the command, take screenshot of the last part of summary (under the dotted line, highlighted in screenshot below) and post it here.

Read other 9 answers

What is the format for ROBOCOPY to copy a file from the source directory and rename that file in the target directory? ie, file c:\A\a.txt should be copied as C:\B\b.txt


Read other answers

I installed ATA in my environment yesterday and the server alerted me to my AADSync server.  I allowed the activity, but I'm wondering if it is best practice to install the (Lightweight) Gateway on the AADSync server?
AADSync server is running Windows 2008 R2 without any roles installed.  Microsoft Azure AD Connect is the only service running on this server.

Read other answers

Hi everyone,
I'm new here and have a question. I recently had to set my system back to factory settings. Now when I go to a new web site using Firefox I get the following error message...
"Javascript task directory does not exist. Please change to home directory."
I'm using Windows Vista Ultimate version, 32-bit with both Service pack 1 and 2 installed. I have no idea of how to correct this problem and I know everyone on this forum are brilliant! So any help would really be appreciated.

A:Javascript task directory does not exist. Please change to home directory.

Hi osprey1111,
Have you checked to see if you have Java installed: http://www.java.com/en/download/testjava.jsp
Have you enabled: http://www.activatejavascript.org/en/instructions/firefox

Read other 11 answers

Hi there.. is there someone that could help me out? I've searched and searched but have not found a satisfying error free answer yet..: (well, 2 questions actually...)
I want to move the entire User Folder in my Vista OS in a different alltogether hard drive.
instead of c:\users\myusername...I want something like f:\my_folder_users\myusername
This would also apply to os folders such as AppData, and default location of file allocation, ie Microsoft or Adobe.
I am aware that you can move specific user folders but not the entire tree... Any help with that?

I want to move the default target installation directory for any new application... I mean you can do it the manual way but some of the programs may not allow this, or even addons...

Any help greatly appreciated...

A:Moving the User directory & default installation directory

I'm not answering this with any great confidence that you are not going to get into trouble here, but the default locations for the "current user" -- what you are talking about in item 1 -- are covered in this registry location:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

You might find some more information here:


I could be wrong, but I don't think there is a way to get setup programs to automatically offer that.

Read other 2 answers

I have a 10 files that have all been categorised into about 40 folders. These files have been damaged.
I have a backup of all these files, but they are not categorised and sit in a single directory.

Does anyone know of an easy technique to batch replace the damaged files with the originals?

Cannot find any apps to do such a task.

A:Replace files in multiple directory, from a single directory

Easy one:

Built in command part of Windows. Open an elevated Command Prompt and type:

replace /?
Here is how:

Folder with Backup files:


Folders with corrupt files:


Replace c:\data\backup\*.* e:\finance\statements /s

Read other 2 answers

I need some help in figuring out how to copy a whole bunch of files from a directory tree to a single directory. I looked at all the xcopy switches, but none of them look like they will do what I want it to do. If I use the /S switch, it will keep the directory structure. Any ideas?

A:Help with copying files from a directory tree to a single directory

Do you have XP up & started? Why not just go into explorer, highlight all you need (CTRL + A to highlight everything), copy & paste?

Read other 4 answers

So i have 3 files i cannot delete after uninstalling a game. I also cannot rename the folder they are in without windows explorer not responding and i have to restart explorer.

I did take ownership method but that froze up to. I went into safe mode, and tried it that way - also didn't delete, it equally froze up.

I have attached an image of the delete attempt - it just gets stuck like that.

I'm out of options - please advise on what i should do ?

A:Files won't delete in directory - can't rename the directory either

What is drive F? Is it a flash drive?

Read other 8 answers

I'm trying to delete a subfolder from my server via FTP, when I receive the error message:

550: cannot remove directory, directory not empty.

Any suggestions on how to delete?


A:~FTP error - 550: cannot remove directory, directory not empty.

The server seems to be saying you do not have permission to delete a subfolder that still has something in it. Have you made sure that the subfolder you are trying to delete is completely empty, including any hidden files? Some FTP client programs have a user selectable option to delete non-empty subfolders.

Read other 1 answers

I am trying to create an "End-User" Friend Company Directory site that links to field in Active Directory.

Active Directory is currently hosted on Server 2003 with latest Service packs.

I have seen several pieces of software such as People Updater/Finder most of which do more than I want to do.

Any suggestions on a CHEAP or even FREE solution?


-- BS

A:Active Directory to Company Directory

How often will you update this?

If its a one time deal, excel, Dsquery/ dsget and a little vbs/ JS can get you done... querying the LDAP is not too hard to put into a txt file or xls. Cleaning it up can be depending on how much you want to put into the development.

Read other 1 answers

Following the directions outlined in Change Directory in Command Prompt including enabling command extensions outlined in Command Line does not permit the CD command to change the directory focus to a directory with a space in its name. I am trying to set the active directory prompt to C:\Users\Owner\My Documents. I can get to C:\Users\Owner but with command extensions enabled in administrator mode (CMD E:ON) the CD command will not accept My Documents as a valid directory name within Owner. The error I get is "The system cannot find the path specified." My goal is to get a directory tree (as a file) of the directories and files in My Documents with the DIR command when in that directory. The complete DOS line for that command would read C:\Users\Owner\My Documents>DIR /o:n /s > DirTreeList.txt. Any help would be greatly appreciated.

A:Cannot change directory (CD) to a directory with space in the name

Welcome to Seven Forums utnatw7f387. I'm far from an expert, but will throw out something simple until the smart people see this. have you tried

C:\Users\Owner\My\ Documents>DIR /o:n /s > DirTreeList.txt

A Guy

Read other 9 answers

We have a mixed-mode domain (Windows Server 2003 is our primary domain controller/Exchange server where Active Directory administration is executed). We have users' home directories mapping using built-in AD functionality to map a home directory (not via a login script). We set it up by going to Active Directory Users and Computers | User Name | Properties | Profile | Home folder. We have drive H: set up to connect to \\fileserver\users\username, which is each user's home folder.

Regularly, for users of Windows XP only, we see this folder being mapped to \\fileserver\users during some Windows sessions, which non-network administrators cannot access. As a result, they see "Access Denied" when trying to go into their H: drives. This poses a problem for saving and accessing files but also because we have WordPerfect's backup folder set to the user's H: drive, and when WordPerfect can't find it, it tells the user their backup folder can't exist, which makes people wonder why they are getting an error message and what to do.

When this happens, I can go into ADUC and check the user's profile and see that their home folder is supposedly still pointed at the right place. However, when actually mapping, it mismaps to the parent directory. I would say this happens once every two weeks for me, or perhaps more often for some users. I wrote a little batch file to unmap drive H: and remap it properly that ea... Read more

A:Xp - Home Directories Not Mapping Properly - Mapping To Parent Directory (domain's Users Directory)

Try mapping the network drive on the user's computer via the command prompt, and then setting the /persistent flag to yes.

For example:

Log in as the end user on their Windows XP workstation. Open My Computer and disconnect the H:\ drive so that it goes offline and disappears from the My Computer window.
Open up the Command Prompt.
Map the network drive via the command prompt using the following commands:

net use h: \\fileserver\users\%username%

Then press [Enter] and wait for the command prompt to confirm success. Next set the /persistent switch for the mapped network drives.

net use /persistent:yes

Then press [Enter] and wait for the command prompt to confirm success. Open My Computer and confirm that the mapped home drive reference has been created. Restart the computer and check it again. If it switches out, there may be a script that is running at login or some other setting that is being pushed out via Group Policy that is interfering with the network drive mappings.

Read other 2 answers

I'm trying to use robocopy to copy files and subdirectories from a zip drive to a hard drive and include the original modification dates using the /copyall attribute. By just copying it within Windows 7 professional every subdirectory shows up
with a current modification date. So when using /copyall I keep getting the error message "you do not have the manage auditing user right". Don't know what that means - right as in correct, or right as in permission. Either way, is
there some way to do this?

Read other answers

I am runing  window 7 32bit.  I run  robocopy to backup  files and dirs  ? I noticed lately that the process is coping files that are not subject to copy, ie the source and target files are exactly the same ? I use the /mir robocopy

When  roboopy copies a file from the source to the target, it will tag the copy in the log, ie ?newer? ?new files? ?older?   - etc ? in this case there is no tag on the copy log  and the summary at the end of the job reports all the source
being copied. 

I have windows 7 on other computer and this  operation works  correctly on those computers  ? the only difference were this is not working it seems that version of windows 7 has fix  KB2639043 installed. 

I went  as far as to write a program to show the 64 bit time stamp (both the modified and create times) and an compare them  on the source and target files and they are EXACTLY the same (the file size is also the same in both files) 

Lastly, I tried ?synctoy? and that ?did the right thing? ? so there is some sort of bug with robocopy  ? How can I report this issue?   

Read other answers

Hi, I have 2 questions which I desperately need help with. Here's the question: 1. robocopy shoud Run in a separate terminal window and recheck file system changes every minute. 2. write a continous logfile that contains all detected file system changes including full pathnames of affected files. How do I do this?

A:Robocopy (help please)

This is one way, put this in a batch file:

robocopy command here
timeout 120 > nul
goto Start

Lots and lots of robocopy parameters, one of which is /log:file (file being the file you want info logged ion). > nul hides the Timeout in n seconds message.

Read other 5 answers

I have Windows Vista Home Premium and somebody recently mentioned to me about Robocopy to use from cmd. Unfortunately I got into a mess and cmd froze so that I had to force shut down.

Can somebody kindly let me know how to use robocopy to copy files and directories my document on C: drive into external hard drive J: in a simple language as possible.

Thank you very mcuh.


This is how robocopy is used:
How to Copy Vista to Another Hard Drive | eHow.com

That being said, I would like to mention that in several years of helping out at the Vista Forum, this is the first question about robocopy. Most members use Macrium Reflect to make monthly backups. These backups are always available in the event of a catastrophe with the OS. It can also be used to transfer to another drive.
Macrium Reflect FREE Edition - Information and download

Read other 10 answers

Need to back up data-drive regularly on drive F and send to data-drive G

Robocopy has been mentioned as win7 built-in. I'm confused what is it & how to use it?

A:Robocopy how?

ROBOCOPY - Create Backup Script

Read other 2 answers

I have been forced by the man to switch to vista. I had a simple xcopy to duplicate a folder structor. Would someone be kind enough to translate this into robocopy for me?

xcopy r:\_DND\*.* r:\SMcbrid2\ /E /O

Thanks for the help


Here you go:

ROBOCOPY r:\_DND\ r:\SMcbrid2\ *.* /E /COPYALL

Read other 1 answers

I am reporting a bug with the program robocopy.  My system is Windows 7 32bit.
The bug was introduced when hotfix kb3125574 was applied.

The bug seems to be that now, robocopy, is using the "access time" of the source
file to determine if the file is to be copied to the target.

Every copy that is executed by robocopy in annotated in the robocopy log with
the tag "new file" "newer" "older" "changed" ... etc.  With this bug, the copy
is noted in the log, but the tag (field) is blank

I was able to duplicate this, the console session is attached.

This bug has rendered robocopy useless.
console log listing

Read other answers

Hello all,

To save my life I could not get the Robocopy GUI to work. I have no problem using it with command line by dropping in to CMD.

Tried the GUI it reported that the job is finished as soon as I click "RUN" but nothing copied.

Thank you kindly,

A:I need some help with Robocopy GUI please.

Why not just put the command line commands in a bat file and run them like that? It's how I do my backups.

Read other 2 answers

Basically I would like to copy from my Skydrive to copy to my NAS once a day everyday. I know some of the basics but need help with specifics like copy to folder and making sure the newest file exists as the saved copy.

Here we go!

Robocopy C:\Users\Clive\SkyDrive\Documents B:\ /
Thanks guys for comments!

A:Robocopy. Can someone help please!

If your looking for a clean way to do that, you should look at Microsoft Richcopy which is a GUI'd + version of Robocopy. I've used it for years and it works fine under Windows-8.

For more info see: Free Utility: RichCopy, an Advanced Alternative to RoboCopy
Online Guide & extra info: RichCopy Guide - ETCwiki

Hope it helps.

Read other 3 answers

Does Robocopy /MIR copy all files or just the ones that are added and those that are changed? I don't want to start this if it is going to take hours and hours. thanks...

A:Robocopy /MIR

Just the changes.

Read other 7 answers

I am trying to use robocopy in a batch file to move log files that are older than 5 days into a subdirectory of the current directory.  Also I want it to report only how many files were copied just like copy and xcopy do.
Here's what I have now:
robocopy . ./OldLogFiles *.log /MOV /MINAGE:5 /NS /NC /NDL /NJH /NJS
When I run it, it looks like it recopies the files in the /OldLogFiles folder too.  It list all the filenames and the filepath.
I am trying to run this also on Windows Server 2008 R2 Standard (if that makes a difference).
Thanks for any help,


Read other answers

We are looking to migrate a SQL database to a new server. The database is for an imaging software and has pointers to the images. We are going to move the database in the next week or two. I wanted to start copying the image files to the new server to prepare for the migration (about 300 gig of 17k files). I understand that robocopy is a good program to accomplish this. I am looking to copy all the files, folders, and subfolders over, then copy only the changes over nightly. What is the correct command line that I should use to accomplish this? Can I save it to a bat file and use windows task scheduler to have it run nightly?

Thanks in advance for all of the help!


Are you migrating to a server that will be running the same software? Why not use an SSIS package? That way, you can migrate the complete database to the new server and just point your programs as necessary.

Read other 3 answers

I have created a robocopy.bat as below :

robocopy C:\Users\Faust_000\Documents\Alfredo "F:\Backups Documents" /e /mir /z /np /tee /log:Alfredo_log.txt

and I have created a Planned Activity into the Planning Utility to run at certain time every day.

Now my question is :
1. if manually activeted by double click robocopy.bat it perfectly works and the log.tx file is created
2. if I execute the robocopy by the Planned Activity (by manually Excute or automatically at the planned time) the robocopy is done correctly but the log.txt file is not created or updated.

I did both on W7 Professional 64bit and on W8.1 64bit but no difference.
Could someone help me to understand why the difference of results manually and via Planned Activity ?
Thank in advance.


I don't use Robocopy or Planned Activity but it might perhaps be related to the current directory when the bat file is executed. If so, the other log file should be somewhere on your system and you could search for it.

I mean when you manually run the bat file you get a certain "current directory", but in the other scenario you get another directory. You can try to include a path for the log parameter or move to a certain directory with the cd command in the bat file, before the robocopy command.

Read other 2 answers

how do I access a command line to be able to use robocopy? when I use the regular command prompt, I get an error message that says Robocopy is not recognized as an internal or external command, operable program or batch file. What am I doing wrong?


Where did you get the program? Sounds like it's corrupted.

Read other 2 answers

Hi there,

I want to use ROBOCOPY to move any file that is older than 30 days.
I've tried this command but it seems to move the file anyway, even though the file is only 4 days old:

robocopy * C:\b2d C:\archive /mov /minage: 01-04-2011

From "/minage: 01-04-2011" i thought it would only move files that are at least 30 days or more old. But this seems to move everything.

Can anybody explain why this is happening? Is it because i used a wildcard on files, will that not look at the file age?


Read other answers

I have been running Robocopy under Windows 8 for a long time without any problems. Now, all of a sudden, I keep getting the error that Robocopy cannot find the Backup_log.txt file, even though it is quite visible in the C: tree directory. Following
is the BAT file we have always been using:-

robocopy Z:\     F:\backup

robocopy Z:\IDENTITIES        F:\Backup\IDENTITIES /e /mir /np /z /tee /log:backup_log.txt
robocopy Z:\LIBRARY           F:\Backup\LIBRARY /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\EX_MEMBERS        F:\Backup\EX_MEMBERS /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\Magazine_index    F:\Backup\magazine_Index /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\VENUES            F:\Backup\VENUES /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\MEMBERS           F:\Backup\MEMBERS /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\CATHS EVENTS      F:\Backup\CATHS EVENTS /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\COMPANY LOGOS     F:\Backup\COMPANY LOGOS /e /mir /np /z /tee /log+:backup_log.txt
robocopy Z:\EQUIPMENT         F:\Backup\EQUIPME... Read more

Read other answers

Hello everyone been lurking around for awhile, so much knowledge on this forum.

I hope someone can help me, I am just a noob, don't know to much.

I ecently purchased a synology Network Attached Storage (NAS).

and I would like to set up so that files tranfer from one folder to the next automatically, I am not sure what type of line to put into the command prompt?

The original folder is C:\user\recordedtv the other one is on my network and shows up as DISKSTORAGE i have a folder on there called beyondtv and would like to copy all files from C:\user\recordedtv.
How would I do this?

A:Robocopy Synology

Welcome to Seven Forums,

You may definitely setup to sync and backup files automatically to your NAS. Pls check out SyncToy, its a Free cool utility from Microsoft and its easy to setup. Sync files with your NAS ? Cogito, ergo sum

Read other 7 answers

Hi all, quick question.

I have used Robocopy to back up all my photos etc. for yonks, set it so that it mirrored by files on my main laptop. I have since had the need for faster and bigger storage and so have invested in a NAS. Awesome.....BUT...

when I run my script it no longer detects that a copy of the file already exists - it thinks every file is 'newer' and so it copies everything again (not funny given it's 50Gigs!)

My script consists of several lines like this...it's very simple(!)..

robocopy "c:\Users\Steve\my pictures" "\\LS-XHLA97\backup\sr-backup\pictures" /mir /xd *.lrdata

robocopy "c:\Users\Steve\Modo" "\\LS-XHLA97\backup\sr-backup\Modo" /mir

Any ideas? Or suggestions for another way of doing this type of backup?

Many thanks

A:Robocopy and NAS problems...

Read other 8 answers

Within ROBOCOPY i need to write a script that will compare one folder to the other. The differences will be copied to a third folder and after copied to a third folder be copied back to the second folder.

Compare Folder 1 to Folder 2. Differences in 1 to 2 get copied to Folder 3 and after copied it will be copied to folder 2.

Anyone have any ideas?

A:RoboCopy question

Hi and Welcome!
May be better in the development section of the forum, as that is for scripting.
Click the red triangle next to your post and ask for it to be moved.
Kind Regards

Read other 1 answers

Hello Everyone,

I have been working on this for the past three days getting no where.

The system I am trying this on is a Win7 64 bit Home Ed., what I am trying to do is get a batch file created where it copies certain files to an external hard drive. Yes I am already using the Windows Backup that is included but I want to do this as an extra measure.

I have been trying to get the following command to work:

robocopy C:\Users\pare80\Documents E:\backup\Docs /E /CREATE /MIR /SEC /ZB /R:3 /V /FP /TEE /XJ

It looks like the command ran, but when I go to the E drive the folder backup is there but nothing else.

Any help will be greatly appreciated.

Thank You,

-- ParE

A:Robocopy Issues

Take the switch /CREATE away from your string. It only copies the folder (directory) structure with 0-lenght files (placeholders). Your command string should otherwise work just fin. Remember to run command prompt as administartor.

Read other 1 answers

I've just recently realized that copying folders to a backup hard drive resets their "created" date. Should my computer ever crash, all my backup files will state to have just been created on that certain date.

Me, being the organize-freak I am, have been looking for a solution so my backed up files can have the same time stamps as on my computer right now.

I've done a little searching, and have found that people always recommend Robocopy. Problem is, I can't understand a word of the tutorials. Is there anyone with a layman's explanation for how to run Robocopy to carry out what I want?

And also just for the heck of it, is Robocopy the only solution? Is there some sort of back up program on Windows 7 that can do that?


A:Timestamp/Robocopy help

Some of the other posters have had similar problems, book1245, so here are a couple of references to other posts that might offer a little bit of guidance:

There’s some help for you in this thread: "Date Modified" changes when copying... Take a look at the post from Bill2 which has, among other things, this site: How to copy or move files and folders whilst maintaining their original time date stamp. | TechHead.co.uk, (and offers advice about your Robocopy problem as well), and the post from Casca which offers this advice: In a command window, run [xcopy] with the following switches: /s/e/c/a/k/h.

See also the post from huge in this thread: "easy transfer" resets folder modified date who apparently found a way to fix his problem, with only a mild amount of pain.

Read other 3 answers

I have been using xcopy to copy data from a file server to a flash drive. That works OK, but after some time the flash drive is cluttered with files and folders that have been moved or deleted from the file server.

I want the flash drive to mirror what is on the file server, so I decided to give ROBOCOPY a try (version XP010 on a Windows XP computer). Here is the line in my batch file:

ROBOCOPY \\fileserver\share\frank\somefolder E:\somefolder /COPYALL /B /MIR /R:0 /W:0 /LOG:MyLogfile.txt

This works fine except the log file reports Error 3 "The system cannot find the path specified" for files in only one subfolder, and deletes all the files in that subfolder from the flash drive.

The subfolder name is "Computer" (which as far are I know isn't a reserved name), and it has the same attributes and NTFS permissions as all of the others.

Any ideas what the problem could be?

A:RoboCopy Issue

Noone uses Robocopy?

Read other 1 answers

Having trouble with quotes and folder names with spaces.
Cannot get it to run w/o an error.

SET _source=\\fs1\data\shared\"Carolyn Kris Nancy"
SET _dest=\\fsarchive\archiveshare\"Carolyn Kris Nancy"

ROBOCOPY %_source% %_dest% %_what% %_options%

I receive this error;
E:\Batch Move>robobatcharchive
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
Started : Wed Apr 25 10:35:14 2012
Source - \\fs1\data\shared"Carolyn\
Dest - E:\Batch Move\Kris\
Files :
Options : /COPYAT /R:1000000 /W:30
ERROR : Invalid Parameter #3 : "Nancy \\fsarchive\archiveshare"Carolyn Kris Nanc
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /? or read Robocopy.Doc.
NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
**** /MIR can DELETE files as well as copy them !
E:\Batch Move>robobatcharchive

A:Solved: RoboCopy

You need to put the quotes around the entire path:
"\\fs1\data\shared\Carolyn Kris Nancy"

Read other 3 answers

We are migrating our file server from Novell to Windows and I will be using Robocopy to do the copy. i know I cannot move the Novell rights so I have setup the folders (blank) on the destination ahead of time with the rights I want. I was going to just use the MIR switch to keep things in sync but read that MIR could overwrite the rights on the destinantion, is this true? I am not trying to do anything with rights and don't want any rights being assigned or changed.
Am I better off using /E /Purge or /MIR.....or would I be better off with a different program like RichCopy.
Thanks for the advise,

Read other answers

I have a quick question, is the Robocopy.exe in Windows 8.1 compatible with Windows XP or do I have to use the one in the Resource Kit?

I could download the kit, but I don't want to download the entire resource kit on each client that uses our software, as our software that utilizes it only requires the robocopy.

A:Question about Robocopy

You can use the Download Windows Server 2003 Resource Kit Tools from Official Microsoft Download Center for XP

Read other 2 answers

I'm trying to use Robocopy to copy from My Documents to a network path similar to the following: \\it\shared documents\my folder. When I try to use Robocopy, I receive the following in the log file.

D:\Documents and Settings\<my user>\My Documents\TMI\
2008/09/29 13:05:45 ERROR 31 (0x0000001F) Changing File Attributes D:\Documents and Settings\<my user>\My Documents\TMI\
A device attached to the system is not functioning.

Googling this error code hasn't gotten me very far. Any ideas?

Read other answers