Hi Harm,
I may be wrong but I don’t think it is the quote, well, it isn’t the cause of the problem.
From cmd shell point of view all three commands should work but the main difference is the backslash
after the disk letter.
Test 1 and 2 are the same but 3 is different in the meaning how path should be interpreted.
From shells point of view
p:“foto-archief harm\0 Testomgeving”
means that there is a subdirectory foto-archief harm which again has a subdirectory 0 Testomgeving on drive p: relative
to the current directory.
Let’s assume that I want to get a list of all txt files in the python\npp directory which is a subdirectory of d:\scripts.
I could easily do this by executing of of the following dir commands
D:\scripts>dir /B python\npp\*.txt
dummy.txt
D:\scripts>dir /B "python\npp\*.txt"
dummy.txt
D:\scripts>dir /B "d:python\npp\*.txt"
dummy.txt
D:\scripts>dir /B d:"python\npp\*.txt"
dummy.txt
but what I can’t do is using this form
D:\scripts>dir /B d:\"python\npp\*.txt"
The system cannot find the path specified.
D:\scripts>dir /B "d:\python\npp\*.txt"
The system cannot find the path specified.
Because the latter are absolute paths. A absolute path begins either
with two backslashes (UNC)
with a disk letter, colon
AND a backslash
with a backslash.
Your notation p:foto-archief harm is relative. So if your current directory is p:\dir1\dir2
and there is a subdirectory foto-archief harm a dir p:foto-archief harm\ would do a listing in p:\dir1\dir2\foto-archief harm.
So if you do a fourth test
Robocopy p:\"foto-archief harm\0 Testomgeving" D:\backup\test /MIR /LOG+:H:\Dos_map\TESTLogfile.txt
you will see it works as well.
Cheers
Claudia