This article does nothing to make me feel better about "file extensions", in that Mr Chen, for all of this authoritative knowledge of Windows, makes one of the big mistakes about "file type" that have plagued Windows. What is "file type"? Is is "binary file" vs "text file"? Is it "executable file" vs "data file"? Is it "input file for Excel" vs "input file for Word" vs "input file for $X"? Or is is something weird like in old VMS ODS-11 files, fixed-length records vs variable length records which is a very basic "type", which could be characterized as "disk hardware level organization".
Microsoft has done nothing over the years to make this easier. "Extensions" like "COM" and "EXE" and some other undocumented list of extensions make a file executable to the operating system. Having file explorer (or whatever it's called these days) hide the extension has led to people getting fooled into running "porn.jpg.exe" trojan horses.
File extensions: a debacle in many acts. I guess this article clears up some of the more obvious aspects, but does nothing overall.
Not to mention all of the confusion and data loss it causes even in the absence of trojans.
Since Microsoft feels it's so important to use file extensions to indicate the file type, why on Earth do they hide the file extension by default?
CREATE/type=SRC newfile.c COPY/A newfile.c oldfile.c
I know that I was not the last person caught by this, because someone emailed me to say that the source file I had sent him wouldn't compile.
(File types and CLI syntax are not guaranteed.)