admin wrote:This C: vs C:\ is an overloading in Windows's path syntax (I never heard of before, BTW). And now we are paying the bill. Yep, will mention it in Help. Thanks!
Some history, if you like?
Imagine the old DOS-days, when you didn't have a filemanager. And you wanted to copy some files between 2 different directories on 2 different drives, with a private utility. You had to repeat again and again (excuse, if there is a small typo somewhere):
Code: Select all
c:\progs\utils\xycopy.exe d:\dir1\dir2\p1.txt e:\foldera\folderb\folderc\
c:\progs\utils\xycopy.exe d:\dir1\dir2\p2.txt e:\foldera\folderb\folderc\
...
To help for this there was something like a "currend directory per drive"! You set:
Code: Select all
cd c:\progs\utils
cd d:\dir1\dir2
cd e:\foldera\folderb\folderc
And then you could abbreviate the former commands to:
Code: Select all
c:xycopy d:p1.txt e:
c:xycopy d:p2.txt e:
...
In situations, where different drives were used, this could be very helpful!
If you defined your program directory in a path variable, and set the current drive, you could further abbreviate:
Code: Select all
cd d:\dir1\dir2
cd e:\foldera\folderb\folderc\
d:
xycopy p1.txt e:
xycopy p2.txt e:
You can test this in a DOS-(=command-)box with
dir /w
dir d: /w
dir d:\ /w
cd d:\x.y.z (path to some existent directory on d:)
dir /w
dir d: /w
Also when setting quite a long path in form d:\a\b\c\d you could wite it complete, and if you made an error, it all was ignored. You had to check, and retype it all again. Or you typed:
If you misspelled (after d:b) the d:c, you just said
and all possible files and directories in d:\a\b were shown.
That is: the difference between
c:\ (= root on c:) and
c: (= current path on c:)
was *very* handy!