Solved

problems backing up C:\Users\<username>\Documents in Windows 7

Posted on 2011-02-11
5
613 Views
Last Modified: 2012-08-13
Hi,

I am using Robocopy to back up "C:\Users\<username>\Documents to I:\System Backup\<username>

where I:\ is an external USB drive.

For some reason the target directory shows up in Explorer as my Documents while in DOS it shows up as <username> which is what I would expect.

The full line in my batch file is as shown


I just don't get this. I run this command on 2K, 2003, XP and 2008 without any problems but in Windows 7 it renames my directory and changes the folder icon.

I have attached screenshots of the Exploer View and the DOS view.

can anyone shed any light on this please?
robocopy "C:\Users\Hedley\Documents" "I:\System Backup\Hedley" /MIR /Z /R:10 /LOG:Documents_backup.txt /NP /V
robocopy "C:\Users\Melanie\Documents" "I:\System Backup\Melanie" /MIR /Z /R:10 /LOG+:Documents_backup.txt /NP
robocopy G:\Music "I:\System Backup\Music" /MIR /Z /R:10 /LOG:Music_backup.txt /NP
robocopy G:\Photos "I:\System Backup\Photos" /MIR /Z /R:10 /LOG:Photo_backup.txt /NP

Open in new window

explorer-view.jpg
dos-view.jpg
0
Comment
Question by:Letterpart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 81

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 34875167
if you logon as melanie you will see the melanie  folder will show in explorer as my documents as the desktop.ini is also being copied .. for what its worth /mir can also delete files I hope you understand this
0
 
LVL 1

Author Comment

by:Letterpart
ID: 34875273
Thanks for your reply.

I logged in as Melanie and I see exactly the same in Explorer and DOS as logged in under the other account

and yup, I know abouts /MIR. I use it at work to mirror our San arrays.

0
 
LVL 8

Accepted Solution

by:
ConUladh earned 250 total points
ID: 34875390
Delete the desktop.ini file in the Hedley/My Documents folder

If you can't see the desktop.ini file:

In any Windows Explorer window, click Tools ¿ Folder Options…
Click on the View tab.
Check off the radio button next to “Do not show hidden files and folders”.
Put a check in the box next to “Hide protected operating system files (recommended)”.
Click OK.
*******************

Going forward exlude desktop.ini when using robocopy by using the /XF switch

0
 
LVL 1

Author Comment

by:Letterpart
ID: 34875406
Sorted. Deleting the desktop.ini has fixed it.

I will /XF it from now on.
0
 
LVL 1

Author Closing Comment

by:Letterpart
ID: 34875799
Thanks guys
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question