Random Robocopy query

Soldato
Joined
23 Mar 2007
Posts
2,553
Location
Essex
Hi All

Had a random thing ocour this evening when running a robocopy script. It was a very basic one back up one of my drives. I used the following switches...
Robocopy Z:\Photos B:\Test /E /S

The folder 'Test' was not actually on the B drive i was hoping robocopy would create this for me. Anyway the copy started and then finished off with a permission error on the B drive. Went to the drive and tried to manually create a folder called 'Test', windows then tells me there is already a folder called this in the root of the drive. The strange thing is there isnt! Its not hidden or anything.

Cant understand why windows is telling me that there is a folder with this name already in the root of the drive when its clearly not visually there

Any ideas? Im running Windows 10
 
Open up cmd

Type in..

CD b:

Press enter
Dir

Press enter

See if it lists it..


Edit, you don't want E and S, just E.

Edit 2, I just ran the command and it created the folder for me
 
Last edited:
Hi Bledd, thanks for that. I found the problem, it seems to be once the folder is copied it hides the folder as a system temp folder. No idea why its doing this very odd indeed. For now i have reverted to xcopy until i can figure out why its doing this
 
I have had this before

It happens because you are coping a folder on the root of a drive

after your robocopy line in your script add

attrib B:\Test -h -s

This will will unhide the folder after the copy
 
Back
Top Bottom