Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Why an "*.txt " document is saved as "MSDOS" application?

Aug 12, 2007 2:38AM PDT

Hello every body.
Why an "*.txt " document is saved as a "MSDOS" application?
I just copy and paste some text into my notepad, and than saved it.
Many times, I found it back not as a "Text document", but as an "MSDOS application" in the saved folder.
Whats happened??
Thank you very much indeed.
Michel.

Discussion is locked

- Collapse -
(NT) What did you happen to name it?
Aug 12, 2007 5:15AM PDT
- Collapse -
MSDOS
Aug 14, 2007 12:43AM PDT

Hi - a ***.txt document is an MS DOS file, by definition. What is wrong with that?

- Collapse -
I don't agree.
Aug 14, 2007 12:51AM PDT

There's nothing MS-DOS-like in a .txt file. It's just data, totally OS-independent. Although Unix-systems have another way to denote end-of-line than DOS and Windows use.
And, of course, a text file isn't an application, but some kind of data.

The problems seems to be the description for the .txt file somewhere in the registry.

Kees

- Collapse -
(NT) Thank you
Aug 14, 2007 6:00AM PDT
- Collapse -
Technically
Aug 14, 2007 7:12AM PDT

DOS/Windows, Mac, and *nix all use different line end encodings. For the useless trivia buffs, if memory serves... *nix uses a LF (Line Feed) character, Macs (pre-OS X, which I'm unsure about) use CR (Carriage Return), and DOS/Windows uses CR/LF.

The text itself is standard 8-bit ASCII codes most of the time. So aside from some formatting abnormalities opening a text file made on one platform to another, it should still be usable.

Just figured I'd help Mr. O'Daneil out. It seems he must be too busy to add this useless bit of trivia himself, and what are these forums if not places to help one another?

- Collapse -
If you happened to name it ***.bat or ***.com or ***.exe ...
Aug 14, 2007 5:06AM PDT

... or ***.cmd it would no longer be a simple text file as far as the OS is concerned. It would be an executable (although it would not actually execute and a com suffix would get you an error message).

What does your registry show you at HKEY_CLASSES_ROOT\.txt