Some are surprised but because of MS-DOS 2.x compatibility:
`
c:tmp.txt` is a valid file path on Windows
Since each drive letter remembers the current directory and that memory bit is not thread-local nor process-local, so relying on it is bad practice.
The above is a quote from [Wayback/Archive] Oleksii Holub 🇺🇦 on Twitter: “So I was trying to understand the difference between <code>Path.IsPathRooted(...)</code> and <code>Path.IsPathFullyQualified(...)</code> and learned that apparently <code>c:tmp.txt</code> is a valid file path on Windows 🤯” which has an image without alt-text on a long bit of Microsoft documentation which I will further quote below.
Many people don’t know this, so here is a list of variations on relative paths:





