Link to home
Start Free TrialLog in
Avatar of vip110598
vip110598

asked on

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?
Avatar of JimKirby
JimKirby

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

cdlOFNLongNames      &H200000       Use long filenames.

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?


Avatar of vip110598

ASKER


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


Dunno. It works ok here...

Do you have the MultiSelect flag on?

Check you windows settings.

M
ASKER CERTIFIED SOLUTION
Avatar of idcanada
idcanada

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial