Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Robocopy copying folders from the wrong place

15 Feb 2013   #1

Windows 7
Robocopy copying folders from the wrong place

I've set up a back up batch file to copy my Documents, Pictures, Music, and Videos folders from my computer to an external hard drive.
However, while running the Documents backup, it seems to find, the pictures, music, and videos folders all inside the documents folders labelled "My Music", etc.
However, these folders do not exist. When I navigate in explorer to C:\Users\username\Documents\ I cannot find a folder labelled "My Music". When I try to navigate to C:\Users\username\Documents\My Music it tells me that "access is denied". I cannot find them through command line either.
As well, when I try and find the folders on the backup drive, they do not seem to be there either.
I just don't understand where this is coming from.

My System SpecsSystem Spec
16 Feb 2013   #2
Microsoft MVP

Windows 7 Ult. x64


It sounds like you are running foul of junction points. You may need to use the /XJ switch.

Post your BAT code here, and I'll take a look at it for you.

My System SpecsSystem Spec
17 Feb 2013   #3

Windows 7

I got around the problem by specifically excluding those folders, but I would like to know why exactly this happened in the first place. What are junction points?

Here's my batch file:

@echo off
set drive=F:

echo Backing up Documents
ROBOCOPY "C:\Users\*****\Documents" "%drive%\Documents" /MIR /XD "My Music" "My Pictures" "My Videos" /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Backing up Music
ROBOCOPY "C:\Users\*****\Music" "%drive%\Music" /MIR /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Backing up Videos
ROBOCOPY "C:\Users\*****\Videos" "%drive%\Video" /MIR /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Backing up Pictures
ROBOCOPY "C:\Users\*****\Pictures" "%drive%\Pictures" /MIR /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Finished Backup
My System SpecsSystem Spec


 Robocopy copying folders from the wrong place

Thread Tools

Similar help and support threads
Thread Forum
ROBOCOPY - /MOV to two destination folders
Hi there, New to the forum, please go easy :) I've got a robocopy moving a file using /MOV from one folder to another. Is it possible to add a second destination so that the contents of the original folder will be moved to both destination folders? How would the syntax look? (below is...
General Discussion
Robocopy not copying My Document files
Hi, I just started using Robocopy to backup my files to my JBOD recently and I noticed that it does not copy anything in My Document folder. Here is the result log for Robocopy regarding the backup. Even though it says that it copied 22831 files the destination folder says it has not been modified...
Backup and Restore
Robocopy /MOV command copying but not deleting from source directory
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...
General Discussion
Windows storing "Documents" folders in wrong place
So I recently upgraded to an SSD, I moved the Location of the Documents folder to my HDD, now when I play games it stores files, where they should normally be in the Documents Folder, in the E:\ drive rather than E:\Documents. My "Document Properties" look like this: ...
General Discussion
Robocopy - Copying Folders With Spaces in The Title.
Hey guys, This may sound like a really silly question, but I'm just getting to grips with using Robocopy. How do you copy folders with spaces in the title? E.g: T:\Admin Tools I keep getting an error. Any help would be great thanks.
Backup and Restore
Robocopy looking for my directories in the wrong place
I'm trying to use robocopy for mirroring my most important files between two computers. Except for one issue, it works as expected. I'm trying to copy the complete "Documents" directory. Previously, this was called "My documents" and contained for example "My pictures". Now it doesn't, and I...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:51.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App