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


  1. Posts : 5
    Windows 7
       #1

    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 Computer


  2. Posts : 313
    Windows 7 Ultimate x64 SP1 clean install
       #2

    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 Computer


  3. Posts : 5
    Windows 7
    Thread Starter
       #3

    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 Computer


  4. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #4

    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 Computer


  5. Posts : 5
    Windows 7
    Thread Starter
       #5

    @Dwarf
    Thanks!

    Now it works perfectly!

    You dont happen to know how i enable the Windows to use autorun from usb too btw?
      My Computer


  6. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #6

    You're welcome.

    Now for your other query. Have a look at this Tutorial: https://www.sevenforums.com/tutorials...e-autorun.html
      My Computer


  7. Posts : 5
    Windows 7
    Thread Starter
       #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 Computer


  8. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #8

    The designers of W7 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 W7. 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.
    ROBOCOPY and not existing folder "c:\Users\"MyUser"\Doc-capture.png
      My Computer


  9. Posts : 5
    Windows 7
    Thread Starter
       #9

    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 W7. It would have made my life much easier.

    But thanks for the help.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:47.
Find Us