Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: Increase Pa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 10 Topic 395 of 508
Post > Topic >>

Re: Increase Path Range in Dos Mode

by "Rod Pemberton" <do_not_have@[EMAIL PROTECTED] > May 12, 2006 at 05:10 PM

"Jason Burgon" <gvision@[EMAIL PROTECTED]
> wrote in message
news:qoO8g.4049$fS1.1282@[EMAIL PROTECTED]
> "Rod Pemberton" <do_not_have@[EMAIL PROTECTED]
> wrote in message
> news:e3vnsp$1h8p$1@[EMAIL PROTECTED]
>
> > When programming with DJGPP and OW for MS-DOS v7.10, I found that
> > if you pass the complete path (drive,all directories, and/or
filename),
in
> > either short or long filename form, you can exceed the default path
length
> > of 64.
>
> The  maximum 8.3 (SFN) path component lengths are:
>
> File name = 8 characters
> Extension = 3 characters (plus the ".")
> Fully qualified directory path = 67 characters
> Fully qualified file path - 79 characters
>
> >  In other words, a path length limit only exists for incomplete
> > paths.  It appears that partial LFN paths is still enabled in MS-DOS
> > v7.10. There is probably some hidden switch that noone has found
> > which enables paths over 64.
>
> As noted above, a SFN path can contain up to 79 characters (plus null
> terminator). A network path can contain up to 127 characters.
>

Since I have some pretty large paths, I decided to check.  At the command
prompt, I can't exceed 64 chars.  My largest LFN path is 224, which is
well
below the 256 maximum directory or 260 maxmimum path.  However, my largest
SFN path is 124 characters.  I can read from and switch to that directory
under program control (i.e., not command prompt and using real-mode
MS-DOS)
using complete SFN paths (i.e., not relative, not missing the drive, etc).
DJGPP has some extra code to handle large paths, but, IIRC, OpenWatcom
doesn't.  So, somewhere in MS-DOS, there is an ability to handle larger
paths as long as they are complete.

This happens to be the largest SFN path on my drive (yes, the repeating
LN_GT_~1 are correct):
C:\MISC\C_REF_~1\CTESTS\NIST_P~1\NIST-P~1\STD\DIF\DATA\DIF.D\LN_GT_~1\LN_GT_
~1\LN_GT_~1\LN_GT_~1\LN_GT_~1\LN_GT_~1\LN_GT_~1\


Rod Pemberton
 




 10 Posts in Topic:
Increase Path Range in Dos Mode
bpetria@[EMAIL PROTECTED]  2006-05-10 20:45:55 
Re: Increase Path Range in Dos Mode
erewhon@[EMAIL PROTECTED]  2006-05-11 05:45:09 
Re: Increase Path Range in Dos Mode
"Norm Dresner"   2006-05-11 13:19:40 
Re: Increase Path Range in Dos Mode
"Rod Pemberton"  2006-05-11 12:14:44 
Re: Increase Path Range in Dos Mode
"Jason Burgon"   2006-05-11 21:54:30 
Re: Increase Path Range in Dos Mode
"Rod Pemberton"  2006-05-12 17:10:58 
Re: Increase Path Range in Dos Mode
"Todd Vargo" &l  2006-05-13 10:54:11 
Re: Increase Path Range in Dos Mode
"Jason Burgon"   2006-05-15 11:13:48 
Re: Increase Path Range in Dos Mode
"nikola66@[EMAIL PRO  2006-05-14 03:21:47 
Re: Increase Path Range in Dos Mode
ak621@[EMAIL PROTECTED]   2006-05-14 20:07:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 1:57:17 CST 2008.