Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Maximum number of characters in file name extension

Reply
Thread Tools Display Modes

Maximum number of characters in file name extension

 
 
pc nerd
Guest
Posts: n/a

 
      11-16-2007
Does Vista (& XP) set a limit on the maximum number of characters in a file
name extension? I know that XP will open files with 4 characters (for
example, .html). So, is there a maximum number of characters in a file name
extension? Does Vista (& XP) allow numeric characters or punctuation marks or
other typable characters? Does Vista (& XP) allow a combination of alphabetic
& numeric & alphanumeric characters in a file name extension?

Thank you.
 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      11-16-2007
"pc nerd" <> wrote ...
> Does Vista (& XP) set a limit on the maximum number of characters in a
> file
> name extension? I know that XP will open files with 4 characters (for


These limits are defined by the NTFS file system. Windows XP, Server 2003
and Vista all use version 3.1 of the NTFS file system.

NTFS naming convensions are described here:

Naming a File
http://msdn2.microsoft.com/en-us/library/aa365247.aspx

The total length of the filename (basename plus extension) is 255 chars.
There is not specific limit on the extension length (eg you could have say,
200 char basename and 55 char extension, or even 1 char basename and 254
char extension).

All pathnames must generally fit within MAX_PATH, which is 260 chars
includng the final NUL char.

Some other handy references:

How NTFS Works
http://technet2.microsoft.com/window....mspx?mfr=true

Making Room for Long Filenames
http://msdn2.microsoft.com/en-us/library/ms810456.aspx

Different conventions apply for FAT and FAT32 file systems, obviously. These
are pretty much in the legacy class, except for removable media like USB
drives. Vista SP1 will introduce support for the exFAT file system, for
flash drives and similar scenarios.

Hope it helps,

--
Andrew McLaren
amclar at optusnet dot com dot au


 
Reply With Quote
 
davidfowler2000
Guest
Posts: n/a

 
      11-17-2007

Does Windows set a limit on file extension length?

Not as such. Filename extensions are just the bit after the dot and
Windows just uses it as a guide as to what program to pass the file to
to open it. The whole thing counts as the file name. As long as the
filename (INCLUDING the directory path) doesn't exceed 255 characters
then you can have whatever you want).


> Does Vista (& XP) allow numeric characters or punctuation marks or
> other typable characters?


The operators like * / \ ? " <> aren't allowed because they are wild
cards (used by programs / command prompts to perform actions e.g. - *
means all - *.mp3 is all files ending with .mp3)

> Does Vista (& XP) allow a combination of alphabetic
> & numeric & alphanumeric characters in a file name extension?
>


What about .mp3? Last time I checked, XP could open my music files


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of Mapped Drives with Vista 65gt Windows Vista Networking 0 08-02-2007 04:10 PM
command line maximum number of characters Vincent Windows Vista General Discussion 1 07-09-2007 04:10 PM
Maximum number of fonts KatieS Windows Vista General Discussion 3 02-21-2007 05:40 AM
Maximum number of files (from network share) in Windows Explorer? Jeroen Thur Windows Vista File Management 2 06-19-2006 09:47 AM
You have received the maximum number of product keys Bluemonkey Windows Vista General Discussion 3 06-09-2006 01:15 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59