VOGONS


Maximum filename length

Topic actions

First post, by mike_canada

User metadata
Rank Member
Rank
Member

I'm making a special application which includes the use of x86 machine code, but I want to know something.

In an MS-DOS environment What is the longest filename length (with path included) one could use?

By MS-DOS environment, I refer to DOSBOX 0.74, and the real MS-DOS 6.22

Reply 1 of 1, by Errius

User metadata
Rank l33t
Rank
l33t

In Turbo C, MAXPATH is 80

https://www.itlnet.net/Programming/Program/Re … tc/ng2303a.html

2+ 65+8+4 = 79

"This all reminds me when i took the windows vista sticker thingy off my old laptop, and on my washing machine as a joke. A few days later said washing machine stopped working. I still think this cannot be a coincidence."