Hi, On Sun, Mar 24, 2013 at 10:07 AM, Marcos Favero Florence de Barros <[email protected]> wrote: > > However, there may be other problems when running under Connect. > > - Sometimes (yes, just sometimes), when a full path is given > after the "@" sign, such as C:\TEMP\SELECTED.LST, 7zip > complains that it "Cannot use absolute pathnames for this > command".
7-Zip was originally Windows only. p7zip is the "POSIX" (Linux or *nix) port. In *nix, there are no drive names. I'm not sure I fixed all the bugs regarding that. DJGPP has a workaround, "/dev/c/somedir" means C:\SOMEDIR , but I'm not sure if that'll help you here. You'd have to use some scripting lang to convert to that syntax inside your .BAT, not ideal. One particular bug was that it seemed to be stripping the drive name from the cmdline. I think I encountered this when trying to (un)pack from a different drive. So I had to use "c:c:" twice (see BTTR Forum thread). Again, not ideal, but the POSIX port wasn't trying to support both drive names and *nix hierarchical file systems. (Oddly enough, DJGPP is somewhere in the middle.) This is why p7zip may be a bit too complex for its own good, supporting so many different things. It might be wiser and easier to use smaller, standalone tools (e.g. xz). Or at least those are less likely to have so many gotchas (I hope). > - Again sometimes, when the 7z compressed file is in the root of > a disk, 7zip will say "there is no such archive". Not sure, I'd have to try it myself (with exact same cmdline). > - Compression and extraction of files selected with the space > bar in the file manager is working, but adding files to an > existing 7z file (updating) is not. 7zip expects to find a file > ending in ".7z.tmp" -- which to me looks like a Linux thing. The > error message is "no such file or directory (ENOENT)". Right, didn't fix that yet, it assumes LFNs since *nix always supports that. You can either enable DOSLFN or manually rename the file (without extension!), see BTTR Forum thread. > The reason why I'm talking so much about Connect is that I find > it *much* easier to work with archivers with help of a file > manager, and in Connect archiver support is user-configurable. > It is not very easy, but once done it is very reliable. I have > been using other archivers (IMP, QFC, ESP) with Connect for many > years. I have not been able so far to use 7zip support in either > DosZip or NDN. Doszip, IIRC, has a plugin for it. It's been a very long time since I tried customizing it for archivers. Probably because he updates it so much. :-) NDN is customizable too, and its VFS (or whatever) for viewing inside archives is very handy. It should support 7-Zip too (or at least configurable), but again, I haven't tried lately. While the above can be useful, sometimes it just gets in my way, and I end up wasting time with the boilerplate instead of just doing it manually at the cmdline. I'm not saying it's ideal, but to me it's easier than exiting and restarting the file manager a million times. I admit that some things like this should be abstracted away for most people (unless you like remembering arcane syntaxes), but when there are so many competing archivers, it's hard to do. (Maybe this is why FreeDOS still sticks to .ZIP after all these years!) > Archivers can be tricky, especially in their way of dealing with > folders. I hope the information above is accurate, but I may be > missing something, since some behaviours seemed erratic, i.e., > there may be something else involved. > > To sum up, in spite of a couple of flaws, it is working, and I > think it will be very useful. It's definitely got some flaws that need fixing, but I'm not totally confident I can do it. One of these days I will definitely need to take another close look. Hopefully indeed it works well enough for now (and, dare I say it, somewhat better than Khusraw's 9.13, our previous build). ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Freedos-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-user
