Short Windows file name (8 char) vs long one

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\""
 
T

Torgeir Bakken \(MVP\)

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...
 
T

Torgeir Bakken \(MVP\)

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top