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 Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 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 for2: Robocopy copying folders from the wrong place
Thread Forum
Solved Robocopy /MOV command copying but not deleting from source directory General Discussion
WMC Captions are in wrong place when edited. Media Center
Solved Windows storing "Documents" folders in wrong place General Discussion
Solved Robocopy - Copying Folders With Spaces in The Title. Backup and Restore
Robocopy backup for personal folders Backup and Restore
Solved Quick Launch at wrong place General Discussion
Robocopy looking for my directories in the wrong place 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 07:19 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App