file extensions
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
As the first series of bytes and a file extension. Then always check the magic number instead of the file extension when the file is opened.
File Not Found
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
I'm using them myself in a few places, it's better. The only reason against I can imagine is users that are not yet adjusted. Worsened by the likelyhood that they still use some tool that isn't LFN aware and "suddenly lose their data anytime they copy it to somewhere else randomly without having done anything at all." So the question for you is: can you train a few luddites people dedicated to not changing a workign system, or is their opinion so valuable to you (or their antics so devastating) that you rather not dare tickling them. One thing to be aware is the pattern matching of file search. If you search for "*.zoidfiles", Windows will return all files with the extension ".zoi" as well - because that would be the extension of the 8.3 filename. (that's why, *.html also matches *.htm)
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify!|Fold With Us! -
I know that name length isn't a problem, and there are quite a few examples of applications that do use longer extensions... but, in general most new applications still choose to use 3 character extensions. Especially for files that are used by users. For example vs2005 uses .sln for its solution files. Why not call it .solution ? I'm just curious, there hasn't been any technical limitations since Win98 for sure, and even Win95 (I think -- too long ago, can't remember). The unix world never had this limitation. So why are most file formats still using the 3 letter extension? Is it only tradition? My only other guess is that there might be legacy code sitting deep within some new applications that still expects 3 character exts.
zoid ! wrote:
For example vs2005 uses .sln for its solution files.
Pretty sure the .sln format (or at least, the idea for it) came from VisualInterdev, which was released back in the '90s and ran on Win9x, which could use Fat32, which had... issues with long extensions. The same is probably true for a good number of other products.
----
...the wind blows over it and it is gone, and its place remembers it no more...
-
I have a lot of XML files that are given other extensions, and text files that are given other extensions, and it would really be nice to have a naming scheme that would allow those facts to be represented in the name (and file associations...)
----
...the wind blows over it and it is gone, and its place remembers it no more...
Yeah, xml is one of those strange cases since the files should really be grouped by schema. .xml.schemaName or the reverse would be nice. So would meta data that was shown in explorer. I don't like the way office handles it's xml files. It actually scans the xml file and shows it's type in explorer. That really sucks.
Using the GridView is like trying to explain to someone else how to move a third person's hands in order to tie your shoelaces for you. -Chris Maunder
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
Depends on what kind of inter-operability you require. Will your files be processed by lots of other applications most of which are unkown to you (ex mp3 files)? If not then choose whatever you want. I know applications such as SolidWorks (3D CAD) use .sldprt, .sldblk, .sldasm, etc. But for Office there's probably thousands of home grown tools and code out there that assumes 3 character extensions and going with something else would only wreak havoc.
Todd Smith
-
I have a lot of XML files that are given other extensions, and text files that are given other extensions, and it would really be nice to have a naming scheme that would allow those facts to be represented in the name (and file associations...)
----
...the wind blows over it and it is gone, and its place remembers it no more...
Or to be able to associate apps, icons etc with xml files based on their contents rather than just have one app and icon covering all xml files. I have a shell extension that does just that!
Team Leader - Team Code Project[^] :cool:
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
For our software, we don't limit ourselves. In fact, since changing to longer extensions we have found that we don't need to worry about conflicting with other applications. It's much easier to have a descriptive file type, so rather than using something like DOC you could actually call it Document.
Deja View - the feeling that you've seen this post before.
-
By calling me youngster you are my new favourite person of Today.
cheers, Chris Maunder
CodeProject.com : C++ MVP
Mark is 86 years old. Anyone under 60 is a youngster to him... *ducks* (Well done on beating Scotland. 335 is a whopping score even against Scotland.)
regards, Paul Watson Ireland & South Africa
Shog9 wrote:
And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...
-
I'm using them myself in a few places, it's better. The only reason against I can imagine is users that are not yet adjusted. Worsened by the likelyhood that they still use some tool that isn't LFN aware and "suddenly lose their data anytime they copy it to somewhere else randomly without having done anything at all." So the question for you is: can you train a few luddites people dedicated to not changing a workign system, or is their opinion so valuable to you (or their antics so devastating) that you rather not dare tickling them. One thing to be aware is the pattern matching of file search. If you search for "*.zoidfiles", Windows will return all files with the extension ".zoi" as well - because that would be the extension of the 8.3 filename. (that's why, *.html also matches *.htm)
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify!|Fold With Us!peterchen wrote:
One thing to be aware is the pattern matching of file search. If you search for "*.zoidfiles", Windows will return all files with the extension ".zoi" as well - because that would be the extension of the 8.3 filename. (that's why, *.html also matches *.htm)
Thanks for the tip, didn't realize that the FindFirstFile Api worked this way.
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
If you sent my mom a Word document with .document as the extension she'd delete it thinking it was a virus or some such. .doc is ingrained (as is .xls, .pdf, .txt, .exe, .ppt etc.) For new apps I'd say think of who your users are. If they are techies then longer extensions are fine (.xaml, .application, .csproj, .config etc.) If they are non-techy users then think hard before using more than three letters.
regards, Paul Watson Ireland & South Africa
Shog9 wrote:
And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...
-
Microsoft use a six letter one in: Application.exe.config Although that's also a double extension - are there any rules for double extensions?
Team Leader - Team Code Project[^] :cool:
Nigel Savidge wrote:
are there any rules for double extensions?
Yes. Try sending one as an attachment through the company spam filter...
Sunrise Wallpaper Project | The StartPage Randomizer | A Random Web Page
-
Nigel Savidge wrote:
are there any rules for double extensions?
That they are misleading if you have "hide known extensions" turned on?
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify!|Fold With Us!peterchen wrote:
"hide known extensions"
Very possibly the dumbest program option I've ever seen :|.
Software Zen:
delete this;
-
Mark is 86 years old. Anyone under 60 is a youngster to him... *ducks* (Well done on beating Scotland. 335 is a whopping score even against Scotland.)
regards, Paul Watson Ireland & South Africa
Shog9 wrote:
And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...
-
Depends on what kind of inter-operability you require. Will your files be processed by lots of other applications most of which are unkown to you (ex mp3 files)? If not then choose whatever you want. I know applications such as SolidWorks (3D CAD) use .sldprt, .sldblk, .sldasm, etc. But for Office there's probably thousands of home grown tools and code out there that assumes 3 character extensions and going with something else would only wreak havoc.
Todd Smith
Todd Smith wrote:
But for Office there's probably thousands of home grown tools and code out there that assumes 3 character extensions and going with something else would only wreak havoc.
Office 2007's extensions all have an
x
at the end:docx
for example. They represent the new XML file format.Luis Alonso Ramos Intelectix Chihuahua, Mexico
Not much here: My CP Blog!
-
Paul Watson wrote:
(Well done on beating Scotland. 335 is a whopping score even against Scotland.)
:) Seems our batsmen have found some form.
System.IO.Path.IsPathRooted() does not behave as I would expect
Your batsmen never had a problem - even in that whitewash, they performed very well. It was your bowling that was killing you.
Cheers, Vikram.
The cold will freeze our stares We won't care...
-
Your batsmen never had a problem - even in that whitewash, they performed very well. It was your bowling that was killing you.
Cheers, Vikram.
The cold will freeze our stares We won't care...
Vikram A Punathambekar wrote:
Your batsmen never had a problem
They failed pretty miserably in the finals against England here last Summer.
Vikram A Punathambekar wrote:
It was your bowling that was killing you.
It was Lee that was giving our bowlers a bad name, now he's out and Clark is in we are much better off
System.IO.Path.IsPathRooted() does not behave as I would expect
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
-
peterchen wrote:
One thing to be aware is the pattern matching of file search. If you search for "*.zoidfiles", Windows will return all files with the extension ".zoi" as well - because that would be the extension of the 8.3 filename. (that's why, *.html also matches *.htm)
Thanks for the tip, didn't realize that the FindFirstFile Api worked this way.
One last thing to be aware of: Optical disc standard ISO 9660 http://en.wikipedia.org/wiki/ISO_9660[^], check the restrictions section. Different formats have different restrictions, one of them is a 3 character extension, another is no file names can have more than one dot in it. I'm sure there are other "standards" that have similar restrictions, but if you're going with life file system file associations, there shouldn't be any reason why you can't have extended extensions. Of course, there's legacy software to take into consideration too.
Mike Poz
-
I have a lot of XML files that are given other extensions, and text files that are given other extensions, and it would really be nice to have a naming scheme that would allow those facts to be represented in the name (and file associations...)
----
...the wind blows over it and it is gone, and its place remembers it no more...
Do MIME types relate to your problem? Regards Chris Saunders
-
Is there any (compelling) reason to continue using 3 character file extensions? I am in the process of choosing the extensions that my app will use and I am leaning toward using 4 - 6 character extensions. The main reasons are: To avoid colisions with extensions that are used by other apps. The extension names do a better job explaning what kind of data is stored in the file. I am worried however, because it seems almost applications still use 3 letter extensions for their files. Aside from compatibilty issues with old 8.3 format DOS systems which I think for 99% of current applications isn't an issue anymore, why are people avoiding using longer file extensions for new formats?
I thought _MAX_EXT would kill that idea but actually, it has a value of 256.
Frank