Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Deep directories in DOS (Users)

posted by Ninho E-mail, 30.05.2010, 12:38

Jassena said :
> 67 characters is the documented path limit of MS/PC/DR/Free DOS.

Apologies for my less than accurate recollection. I said ca. 126, thinking of the DOS command line buffer rather than the file API. My real point however was that there is a rather short limit to path lengths a user or programmer can pass directly to the DOS API.

With all the respect, not sure it's exactly 67 either ! The complete path+filename including slashes and dots and a terminal NUL should fit in a 80-byte long buffer, so if you want to be able to access a 8.3 filename in the directory of interest, the limit for the path seems to calculate out as 66 chars; on the other hand a one letter long filename without extension should be accessible within a 77 char long directory ! :=)

There might be differences whether using the old style FCB functions than new unixish file API. Disclaimer : I'm just chatting (again!), not checking my facts...

> Maybe one can go deeper by navigating the directory tree, but I don't
> know whether it works in all versions.

It works in MS-DOS. Of course excluding additional complications caused by e.g. invalid characters in directory/file names.

> If Laaca was able to use a longer absolute path in FreeDOS, this is
> news.


--
Ninho

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum