
Short filename to long filename
Take a look in explorer/views/file types at pretty well any 32 bit
association. You'll find that the parameters are enclosed in quotes. I don't
know if doing so in an inf or reg file, but the correct param is:
HKEY_CLASSES_ROOT .... shell\open\command = "\lcars\lcars.exe" "%1"
This assures, like in DOS, that a long filename is enclosed in quotes.
--
Randy Birch, MVP Visual Basic
http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/
To assist in maintaining this thread for the benefit of
others, please post any response to this newsgroup.
Quote:
>On Sun, 15 Nov 1998 22:55:02 -0500, "Randy Birch"
>>Make sure you have placed quotes around the command line and parameters
>>saved in the registry. If they are not enclosed in quotes, Windows will
>>pass the short name.
>Thanks to everyone that replied - The code worked fine.
>Randy, I couldn't get your method to work. Here's my origional reg
>file I made. Could anyone tell me where the quotes go so I'll know
>for future referance. I tried the 3 obvious places in the command
>line:
>REGEDIT
>HKEY_CLASSES_ROOT\.IDS = ids_auto_file
>HKEY_CLASSES_ROOT\ids_auto_file = LCARS-IDS Program
>HKEY_CLASSES_ROOT\ids_auto_file\shell\open\command = \lcars\lcars.exe
>%1
>Many Thanks,
>Mike Hodgson.
>---
>Web: http://www.program.demon.co.uk
>ICQ: 7503872