robocopy is stuck looking in C:\Users\jack\Documents\My Music\

broiyan

New member
Member
VIP
Local time
4:39 PM
Messages
107
Location
Canada
I am doing a robocopy as follows:

robocopy C:\Users\jack\Documents e:\WindowsBackup\Documents /mir >> e:\WindowsBackup\backup.log

The /mir option simply logs the progress. This goes for a while and copies more than a GB then gets stuck accessing:

C:\Users\jack\Documents\My Music\

and the error message is "Access is Denied". The copying never completes because it will be in an infinite loop looking in a place that does not exist. The Documents directory does not have a "My Music" directory. Why is this happening?

Normally "My Music" would be one level higher, in C:\Users\jack, not in C:\Users\jack\Documents.

Correction: It exists because I can "cd" into it. However I cannot see it in Windows Explorer and "Organize > Folder and Search > View tab" has the "show hidden" selected. So the first problem is that this not copying and secondly it not appearing in the Windows Explorer.
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bit4 GB DDR2 1066GeForce 8400 DVI and Analog, EGA 8400 Analog
Computer Manufacturer/Model Number
mix and match
OS
Windows 7 Professional 64 bit
Motherboard
Asus MA 770 UD3
Memory
4 GB DDR2 1066
Graphics Card(s)
GeForce 8400 DVI and Analog, EGA 8400 Analog
Monitor(s) Displays
2 portrait Samsung 2243, 1 landscape Asus 222
Hard Drives
300 GB
PSU
500 Watt
Case
Antec 500 Sonata III
Keyboard
dasKeyboard USB, the original loud click version
Mouse
Logitech TrackMan Wheel
Internet Speed
DSL
The /mir option simply logs the progress.

Actually, /mir means /MIR :: Mirror a complete directory tree

Enable hidden files and look again to see if it shows up, should be there:

FolderOptsW7.jpg
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Okay, I did not realize there are two "Apply" buttons. Using both buttons does not cause the invisible directory to appear.

I would note that C:\Users\jack\Documents is a restore from Windows 8.1 to Windows 7. I would probably use 8.1 but it's an extra step to install and I have not gotten around to it yet.
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bit4 GB DDR2 1066GeForce 8400 DVI and Analog, EGA 8400 Analog
Computer Manufacturer/Model Number
mix and match
OS
Windows 7 Professional 64 bit
Motherboard
Asus MA 770 UD3
Memory
4 GB DDR2 1066
Graphics Card(s)
GeForce 8400 DVI and Analog, EGA 8400 Analog
Monitor(s) Displays
2 portrait Samsung 2243, 1 landscape Asus 222
Hard Drives
300 GB
PSU
500 Watt
Case
Antec 500 Sonata III
Keyboard
dasKeyboard USB, the original loud click version
Mouse
Logitech TrackMan Wheel
Internet Speed
DSL
I unchecked "Hide operating system files" and now I see a short cut called "my music". That's strange, I would not consider that to be an operating system file of the sort like CppRedist421.dll. In any event, the short cut probably is dead because I probably deleted the "My Music" folder that it would point to.

I hate all this "My" stuff. What purpose does it serve? Hate music too when I'm trying to get work done.

I'm hoping I can get this robocopy to work now.
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bit4 GB DDR2 1066GeForce 8400 DVI and Analog, EGA 8400 Analog
Computer Manufacturer/Model Number
mix and match
OS
Windows 7 Professional 64 bit
Motherboard
Asus MA 770 UD3
Memory
4 GB DDR2 1066
Graphics Card(s)
GeForce 8400 DVI and Analog, EGA 8400 Analog
Monitor(s) Displays
2 portrait Samsung 2243, 1 landscape Asus 222
Hard Drives
300 GB
PSU
500 Watt
Case
Antec 500 Sonata III
Keyboard
dasKeyboard USB, the original loud click version
Mouse
Logitech TrackMan Wheel
Internet Speed
DSL
The copying never completes because it will be in an infinite loop looking in a place that does not exist.

Add a Retry Options parameter to your Robocopy command to limit the number of retries for failed copies.
I add a parm to set retries to 5 attempts with this /R:5
The default retry setting is 1 million :shock:

In CMD enter this for Robocopy help, to see this info:
Robocopy /?

EDIT:
Also look at using the /XD (Exclude Directories) option.
 
Last edited:

My Computer My Computer

At a glance

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x6...AMD Athlon II x4 6206GB GSkill DDR2 800AMD 4670 GPU + AMD 4200 IGP
Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
I unchecked "Hide operating system files" and now I see a short cut called "my music". That's strange, I would not consider that to be an operating system file of the sort like CppRedist421.dll. In any event, the short cut probably is dead because I probably deleted the "My Music" folder that it would point to.

I hate all this "My" stuff. What purpose does it serve? Hate music too when I'm trying to get work done.

I'm hoping I can get this robocopy to work now.

You could try removing System and Hidden from the My Music folder properties if there. That should make it a normal folder, not a system/hidden folder.
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
DavidE, thanks for the tip about the retries. I think I'll leave it alone since this is a backup it should fail hard or not at all.

After deleting the broken shortcuts that were formerly hidden, the backup works.
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bit4 GB DDR2 1066GeForce 8400 DVI and Analog, EGA 8400 Analog
Computer Manufacturer/Model Number
mix and match
OS
Windows 7 Professional 64 bit
Motherboard
Asus MA 770 UD3
Memory
4 GB DDR2 1066
Graphics Card(s)
GeForce 8400 DVI and Analog, EGA 8400 Analog
Monitor(s) Displays
2 portrait Samsung 2243, 1 landscape Asus 222
Hard Drives
300 GB
PSU
500 Watt
Case
Antec 500 Sonata III
Keyboard
dasKeyboard USB, the original loud click version
Mouse
Logitech TrackMan Wheel
Internet Speed
DSL
Back
Top