|Date:||November 18, 2004 / year-entry #397|
|Summary:||If you have both a folder named, say, C:\Folder and a program named C:\Folder.exe and you type C:\Folder into the Start.Run dialog, you get the program and not the folder. Why is that? Because it is common to have D:\Setup.exe D:\Setup\... where there is a setup program in the root, as well as a setup...|
If you have both a folder named, say,
Why is that?
Because it is common to have
where there is a setup program in the root, as well as a setup folder containing files needed by the setup program.
Before Windows 95, you couldn't open a folder by typing its name. (If you wanted to view it in File Manager, you had to run File Manager explicitly.) As a result, programs written for earlier versions of Windows would have instructions like
Since there was no such thing as "opening a folder", the only option was to run the program
Windows 95 was required to prefer the program over the folder in order that those instructions would remain valid (substituting the Start button for the File menu).
And each version of Windows that prefers the program over the folder creates an environment wherein people who write setup programs rely on that preference, thereby securing this behavior for the next version of Windows.
But what if you really want to open the folder?
Append a backslash to force the path to be interpreted as a folder (
<-- Back to Old New Thing Archive Index