Windows Registry parameter

June 24, 2009 at 03:51:06
Specs: Windows XP SP2, n/a
Hi, can anyone tell me what the difference is between "%1" and "%L" in Registry shell\command values? I vaguely remember reading that "%1" expands to a short (8.3) pathname whereas "%L" expands to the full pathname (with spaces if any). However, recent testing reveals that both "%1" and "%L" seem to expand to the same full pathname. Is there any difference between them and, if not, why have two things referring to the same thing?

See More: Windows Registry parameter

Report •

June 24, 2009 at 07:17:34
I want to say %L used to expand to the long file name; %D gave you the short file name, and %1 would pass whatever version of the name that was passed to the shell. But I can't say for sure, and I can't seem to find any information about it on line, so take this paragraph with a grain of salt.

This no longer seems to be the case; all 3 now apparently pass the long file name.

Report •

June 26, 2009 at 08:12:12
Thanks for the answer, Razor. So by the looks of it the distinction is historic. Modern Windows carries a lot of legacy stuff.

Report •

Related Solutions

Ask Question