Window's Explorer not displaying actual filepath

1

My company uses Robocopy to backup our systems, and in the backup folders, the shown names are not correct.

What is expected, is "This PC > Drive > backup > Store > SYSTEMNAME". What is shown in the address bar in Window's Explorer, though, is along the lines of "This PC > Drive > backup > Store > Users".

When clicked on, it then displays the real file path, "Drive:/backup/store/SYSTEMNAME". It only does this for certain systems, despite the Robocopy commands being identical, same for the system names.

Geoffrey H.

Posted 2017-08-27T18:13:57.963

Reputation: 13

I think you will need to show the Robocopy commands you are using for these backup jobs. It'd be nice to understand where the scripts are executed from as well—on each machine or from a server? – Pimp Juice IT – 2017-08-27T19:34:53.463

What is "clicked on"? Are you using symlinks, hardlinks or junctions? – El8dN8 – 2017-08-27T20:59:02.500

@McDonald's They are executed from a sever. An example of one of ours would be along the lines of robocopy /R:0 /W:0 /NP /LOG+:\logs\COMP_NAME.log /mir "\\COMP_NAME\c$\users" "D:\backup\STORE\COMP_NAME" /XD "temporary internet files" "appdata" "history" "cookies" "application data" "channels" "temp" "local settings" "start menu" /XF "*.mp3" – Geoffrey H. – 2017-08-28T17:25:48.580

@El8tedN8te What I meant is, when the address bar in Window's Explorer is clicked on, the full path is not the same as what the simplified path it displays is. – Geoffrey H. – 2017-08-28T17:28:41.800

Answers

0

Robocopy Expected Destination Not Correct Issue

When you use Robocopy you will want to be sure the last specified folder in the source and destination paths are those of the level you want it to copy to and from starting point wise—I always think of it like a root to root copy perspective in this respect.

Using this below syntax Script Example should resolve this problem you describe moving forward.

Script Example

robocopy /R:0 /W:0 /NP /LOG+:\logs\COMP_NAME.log /mir "\\COMP_NAME\c$\users" "D:\backup\STORE\COMP_NAME\Users" /XD "temporary internet files" "appdata" "history" "cookies" "application data" "channels" "temp" "local settings" "start menu" /XF "*.mp3"

Essentially to keep it short to show you what to change. . .

Where you were using:

robocopy /mir "\\COMP_NAME\c$\users" "D:\backup\STORE\COMP_NAME"

Use this instead:

robocopy /mir "\\COMP_NAME\c$\users" "D:\backup\STORE\COMP_NAME\Users"

Further Resources

Pimp Juice IT

Posted 2017-08-27T18:13:57.963

Reputation: 29 425

Thank you. I've applied this to one of our system's backups. I'll know tomorrow how if it worked out for me. – Geoffrey H. – 2017-08-28T18:32:23.403

I feel you got it right. I think the person who first wrote the script wanted the output to just be D:\backup\STORE\COMP_NAME as opposed to D:\backup\STORE\COMP_NAME\Users but if I understand correctly, not including the "\Users" is what's causing this visual error. – Geoffrey H. – 2017-08-28T18:56:59.510

The backup ran, but it did not change the simplified name of the folder. I think, though, that it's because the folder already existed, and I merely placed a another folder inside it. I updated the path so it's more like D:\backup\OTHER_STORE\COMP_NAME\Users so I will know tomorrow if that worked. – Geoffrey H. – 2017-08-29T14:22:23.453