Re: Self Extractor
- Posted by Juergen Luethje <j.lue at gmx.de> May 31, 2003
- 485 views
Hi Kat, you wrote: > On 29 May 2003, at 9:20, Carl W. wrote: > >> mistertrik at hotmail.com wrote: >> >>> I tried using PKUNZIP.EXE, but it can't handle long filenames (truncates >>> everything to 8 chars, ie PROGRAMF), and it borks about 3/4 of the way >>> through >>> the extraction. >>> >>> Basically, it needs to be DOS based and not munge up long filenames.. is >>> that >>> possible? >> >> DOS mode doesn't allow long filenames (Microsoft would rather you used >> the GUI), but there's a tool out there called LFNDos that will give >> access to long filenames in DOS mode. >> >> Second, grab a copy of the PKZip 2.5 package as this handles long >> filenames when it thinks it sees Windows running (LFNDos fools it >> successfully). Alternatively get the freeware DJGPP Unzip32.exe and >> cwsdpmi.exe (along with LFNDOS) to do the unzipping. > > <prolly !helpful> > It's my understanding you can do LFN in dos7 without windows running, and > without any other apps, IF the dos program knows how to stuff the cpu > registers for the interrupt call. Sorry, this understanding is false. There must be an appropriate API for Long File Names, and this is *not* provided by (any version of) bare MS-DOS. Normally, LFN are only available when IFSMgr (i.e. Windows 95+) is running. Under bare MS-DOS, they only can be accessed by using special TSR programs, such as - LFNDOS: http://saturn.spaceports.com/~dosuser/dosutils.htm - DOSLFN: http://www.tu-chemnitz.de/~heha/hs_freeware/doslfn.zip That the DOS program knows how to stuff the cpu registers for the interrupt call, is necessary of course, but it's not sufficient. a) There must be an API for LFN, *and* b) the program must call the proper functions of that API. Point b) is simple for Eu programmers, because they just can use my lib http://www.rapideuphoria.com/lfn.zip which does the job automagically. Best regards, Juergen -- /"\ ASCII ribbon campain | \ / against HTML in | This message has been ROT-13 encrypted X e-mail and news, | twice for higher security. / \ and unneeded MIME |