The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,830 other subscribers

Archive for July 22nd, 2026

Since more than 40 years, `c:tmp.txt` is a valid file path on Windows (because of MS-DOS 2.x)

Posted by jpluimers on 2026/07/22

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:

Read the rest of this entry »

Posted in Conference Topics, Conferences, Development, EKON, Event, History, MS-DOS, Power User, Retrocomputing, Software Development, Windows Development | Leave a Comment »