I get "dir : Cannot find path" with those dir commands.
However, I get a directory list when I do "dir Z:".
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using robocopy in a Windows Server 2022 and I am trying to copy subdirectories and files from a mapped drive using the following:
robocopy z:\shares c:\shares /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE
when I execute the command I get the following error:
*Accessing Source Directory z:\shares*
The system cannot find the file specified.
If I change the source destination to *z:* -- it will copy everything.
I only need to copy the subdirectories and files from the "shares" folder. What switches should I use?
I get "dir : Cannot find path" with those dir commands.
However, I get a directory list when I do "dir Z:".