Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

CommonDialog and File Extension


Is it normal that when I want to save a file with a four
letter extension like HTML that it writes it as HTM?

How do you make it write the proper extension?
0
vip110598
Asked:
vip110598
1 Solution
 
JimKirbyCommented:
I don't think I have a real answer for you, but it has always been my understanding that an IBM PC (such as old DOS, Windows 95/98, etc.) will allow only a three-letter extension, whereas a MacIntosh or a computer using the UNIX operating system will allow the four-letter extension you want.  I guess it's due to feeding habits of the different beasts . . .

JK
0
 
mark2150Commented:
There's a flag in the common Dialog control that will allow long file names. You have to set it for it to save in other than DOS 8.3 format.

M

0
 
mark2150Commented:
cdlOFNLongNames      &H200000       Use long filenames.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
idcanadaCommented:

That's funny,
I use this flag and yet it still does not let me save an
extension with more than 3 characters.

Mark2150,
is their any other way or could something be setting back
my flag to its default?


0
 
vip110598Author Commented:

As idcanada mentioned,
when i use this flag, it still does not let me save a *.html.


0
 
mark2150Commented:
Dunno. It works ok here...

Do you have the MultiSelect flag on?

Check you windows settings.

M
0
 
idcanadaCommented:

Have a string keep the Dailogs Filename,
select case filterindex and manualy add the last letter of the ext.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now