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 not copying all folders
Hi, I want to use Robocopy to backup the data from my external hardrive D to a file called 'Backup' in a cluster storage W. I only want to backup the modified and new files. In other words, I don't want to back up all the files in D every time I run Robocopy. This is what I wrote by reading...
Backup and Restore
Issue with Robocopy only copying folders, not files, in Windows 7
Last week I used a robocopy tutorial on this site to create a backup script, and it was working fine. Today I tried to run this script, inputting new destination information but leaving everything else the same, and now it is copying all of the folders, but none of the files. It counts a total...
Backup and Restore
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 20:47.
Twitter Facebook Google+