Short filename to long filename 
Author Message
 Short filename to long filename

I've created an extension and registered it in the registry. When I
double click on a file with my extension my app loads fine, but the
path & filename appear to be of the short path/filename type, is there
an API to convert this to the long type?

Many Thanks,
Mike Hodgson.
---

Web: http://www.*-*-*.com/
ICQ: 7503872



Thu, 03 May 2001 03:00:00 GMT  
 Short filename to long filename
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.

--

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:

>I've created an extension and registered it in the registry. When I
>double click on a file with my extension my app loads fine, but the
>path & filename appear to be of the short path/filename type, is there
>an API to convert this to the long type?

>Many Thanks,
>Mike Hodgson.
>---

>Web: http://www.program.demon.co.uk
>ICQ: 7503872



Thu, 03 May 2001 03:00:00 GMT  
 Short filename to long filename
Hi,

In the Microsoft Knowledge Base, look for: HOWTO: Get a Long Filename from a
Short Filename
Article ID: Q163227

Nos vemos.
Guillermo
---
Te invito a mis pginas sobre Visual Basic en espa?ol
http://guille.costasol.net/
=====================================================

Quote:

>I've created an extension and registered it in the registry. When I
>double click on a file with my extension my app loads fine, but the
>path & filename appear to be of the short path/filename type, is there
>an API to convert this to the long type?

>Many Thanks,
>Mike Hodgson.
>---

>Web: http://www.program.demon.co.uk
>ICQ: 7503872



Fri, 04 May 2001 03:00:00 GMT  
 Short filename to long filename
On Sun, 15 Nov 1998 22:55:02 -0500, "Randy Birch"

Quote:

>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



Fri, 04 May 2001 03:00:00 GMT  
 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



Fri, 04 May 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. SHORT filename to LONG filename???

2. Short Filename to Long Filename ???

3. SHORT filename to LONG filename???

4. Long Filename -> Short Filename

5. Convert long filenames to short filenames

6. Convert Long Filenames to Short Filenames in VB4 16-Bit

7. Converting long filenames to short filenames in VB4.0 16-bit

8. Need to get the short filename from a long filename

9. Converting a Long FIleName to it's short equivalent (Both possible shorts)

10. Q: SendTo and short/long filenames?

11. Converting a Long Filename to Short.?

12. Long filenames VS short

 

 
Powered by phpBB® Forum Software