9

If you run Sticky Note in Windows 7,its process, is called StikyNot.exe. Several other Windows processes keep their process names under 8 letters.

Why do they do that? What is the advantage? Are they just clinging to the past? Or should everybody be publishing 8-letter executables?

4

3 回答 3

6

The old DOS/Windows "short names" were 8.3 and there are still some DDE/RPC/COM facilities and APIs in windows that use them. Plus a few 3rd party products.

于 2009-08-15T19:25:33.597 回答
6

Raymond Chen of The Old New Thing Blog covered this in: Why do operating system files still adhere to the old 8.3 naming convention?

于 2009-08-15T19:34:07.747 回答
0

They are just clinging to the past, there is no advantage of using 8.3 filenames. All filesystems that you care about will support them, if someone's filesystem gets bust and somehow reverts to 8.3 filenames, then they should expect applications to stop working.

A lot of modern windows apps DO use longer filenames. It's a good idea.

Also note that Windows executables don't actually need to end in .exe, but it is difficult to execute them (through Explorer) if they don't; you can still run them using CreateProcess()

于 2009-08-15T20:40:16.397 回答