Can't see folder in command prompt in Windows 10

I have a hard drive that I need to copy from one drive to the other in a Windows 10 machine. The source drive has a single folder, read only. When I try to run robocopy, it does not not see the folder on the source drive. I can see the folder in Windows Explorer, and run files from the source drive, but I cannot navigate to that folder in command line. I do not want to mess with the attributes of the source if I can avoid it, as the source drive was recovered from a failing hard drive. Both drives are internal and connected via SATA.

Any idea why I can't see it in command line?

Command line screenshot

Windows Explorer screenshot


Solution 1:

You have changed the folder on D:, but you have stayed on C: as your current disk.

Use the CD command with the /D parameter to also change the disk:

cd /d D:\620547

Or do the equivalent two commands:

cd D:\620547
D:

Solution 2:

Any idea why I can't see it in command line?

Your cmd shell is still on the c: drive.

You need to use cd /d d:\620547 to change the drive and the folder:

/D : change the current DRIVE in addition to changing folder.

Source: CD Change Directory - Windows CMD - SS64.com