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 and not existing folder "c:\Users\"MyUser"\Doc


26 Feb 2010   #1

Windows 7
 
 
ROBOCOPY and not existing folder "c:\Users\"MyUser"\Doc

Hello Fellow 7 users,

I have just switched OS to Windows 7, and i am impressed so far.

I want to backup my data on an external harddrive. I would like to use the function ROBOCOPY in the command windows because then i don't have to third party program running all the time. But the copying stops at a folder that it cannot access. The folder is "c:\Users\"MyUser"\Documents\My Music", but the folder doesn't exist in the directory. I have checked the folder with explorer and commando prompt, but its not there.

I have made a screenshot of the failure:



I am using the following command:

REM Starting Syncronizing with external harddrive
cd %0\..\
robocopy "C:\Users\Halberg\Documents" "Backup\Documents" /MIR /ETA

I hope you can help me with this problem.

/Omorashi

My System SpecsSystem Spec
.

26 Feb 2010   #2

Windows 7 Ultimate x64 SP1 clean install
 
 

My Music is not under Documents folder. It's in C:\Users\Halberg\My Music.
The one you see is for retro-compatibility. Exclude it for copying.
My System SpecsSystem Spec
26 Feb 2010   #3

Windows 7
 
 

I know my music folder is located a new place, but thats not the problem (I copy it with an other new command).

The problem is that i want to copy the documents folder but it keeps finding a folder "My Music" that dosen't exist. I cant see the folder either.

i cant see a way to exclude the folder from the copy because i want to copy everything in the root of documents and if i made a new folder there.
My System SpecsSystem Spec
.


26 Feb 2010   #4

Windows 8.1 Pro RTM x64
 
 

Hi Omorashi and welcome to Windows 7 Forums

Have a look at this thread: Robocopy mass nesting bug

Basically, change your command to the following:

REM Starting Syncronizing with external harddrive
cd %0\..\
robocopy "C:\Users\Halberg\Documents" "Backup\Documents" /MIR /ETA /XJD
My System SpecsSystem Spec
26 Feb 2010   #5

Windows 7
 
 

@Dwarf
Thanks!

Now it works perfectly!

You dont happen to know how i enable the Windows to use autorun from usb too btw?
My System SpecsSystem Spec
26 Feb 2010   #6

Windows 8.1 Pro RTM x64
 
 

You're welcome.

Now for your other query. Have a look at this Tutorial: http://www.sevenforums.com/tutorials...e-autorun.html
My System SpecsSystem Spec
26 Feb 2010   #7

Windows 7
 
 

Well i have allready read that post, and it dosen't give me any way to enable the autorun.ini located on USB drives. But thanks for the quick answer anyway.
My System SpecsSystem Spec
26 Feb 2010   #8

Windows 8.1 Pro RTM x64
 
 

The designers of Windows 7 decided to disable the AutoRun capability on USB devices other than removable optical media for security reasons.

Because of this change in security, some devices which automatically executed programs when plugged into a computer running Vista might not appear to work when plugged into a computer running Windows 7. You will need to click on Open folder to view files from the options that pop up when you insert the drive. There should be an entry called autorun.inf and if you click on it the file will open in Notepad. This will reveal the name of the program (see highlighted example) that would have run automatically had AutoRun not been disabled for that device. You can run that program directly from Windows Explorer.
Name:  Capture.PNG
Views: 2110
Size:  14.4 KB


My System SpecsSystem Spec
27 Feb 2010   #9

Windows 7
 
 

Ye but i hopped there were a way to get around that because i wanted to autorun the ROBOCOPY batch file i wrote when i plugged in my external harddrive. But it seems like MS have totaly shut down the possibility to do so in Windows 7. It would have made my life much easier.

But thanks for the help.
My System SpecsSystem Spec
Reply

 ROBOCOPY and not existing folder "c:\Users\"MyUser"\Doc




Thread Tools




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 11:44 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33