Hacker News new | ask | show | jobs
by uncanneyvalley 641 days ago
It would fail, too. ‘CON’ has been a reserved name since the days of DOS (actually CP/M, though that doesn’t have direct lineage to Windows) where it acted as a device name for the console. You can still use it that way. In a CMD window:

`type CON > file.txt`, then type some stuff and press CTRL+Z.

https://learn.microsoft.com/en-us/windows/win32/fileio/namin...

1 comments

This is a Win32-ism rather than an NT-ism. This will work:

    mkdir \\.\C:\COM1