Short Windows file name (8 char) vs long one

  • Thread starter Thread starter Gilles A.
  • Start date Start date
G

Gilles A.

Hi all,

I try to create a key in the registry to pass the file name to an executable
when I double-click on a that file (depending on the extension).
It works well except that the executable receives the short windows name (8
characters) instead of the long one.

Is there a way to fix that problem?

Thanks,

Gilles A.

REGEDIT4

[HKEY_CLASSES_ROOT\Applications\MyApplication.exe\shell\open\command]
@="MyApplication.exe \"-file %1\""
 
Gilles said:
I try to create a key in the registry to pass the file name to an executable
when I double-click on a that file (depending on the extension).
It works well except that the executable receives the short windows name (8
characters) instead of the long one.

Is there a way to fix that problem?

REGEDIT4

[HKEY_CLASSES_ROOT\Applications\MyApplication.exe\shell\open\command]
@="MyApplication.exe \"-file %1\""
Hi

Use %L instead of %1 to get the long filename...
 
Gilles said:
I try to create a key in the registry to pass the file name to an executable
when I double-click on a that file (depending on the extension).
It works well except that the executable receives the short windows name (8
characters) instead of the long one.

Is there a way to fix that problem?

REGEDIT4

[HKEY_CLASSES_ROOT\Applications\MyApplication.exe\shell\open\command]
@="MyApplication.exe \"-file %1\""
Hi

Use %L instead of %1 to get the long filename...
 
Back
Top