Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,521 of 68,980    |
|    Zaidy036 to dr.j.r.stockton@gmail.com    |
|    Re: Command line 7-Zip question - contro    |
|    29 Mar 20 20:28:32    |
      From: Zaidy036@isp.invalid              On 3/29/2020 4:56 PM, dr.j.r.stockton@gmail.com wrote:       > On Sunday, 29 March 2020 12:06:25 UTC+1, JJ wrote:       >> On Sat, 28 Mar 2020 13:18:06 -0700 (PDT), JRS wrote:       >>> I have batch files (in Windows 10, FWIW) using 7-Zip; a copy       >>> of 7z.exe is in a folder on the Path. They have lines like       >>> this, which work :-       >>>       >>> 7Z a ASTRGRAV.ZIP astr*.htm grav*.htm       >>>       >>> I want to have, on the screen as the lines execute,       >>> (a) much less writing; what I am getting shoots past too       >>> quickly to be read,       >>> (b) the names of the files, and maybe of the folders, as       >>> each is being read;       >>> (c) a short settable delay between files, so that I can       >>> see their names pass by.       >>>       >>> IIRC, with the traditional ZIP (from Garbo) that I used up       >>> to a couple of years ago, I just got (b) without need for (c).       >>>       >>> Is any of that possible, and if so, how (I don't want to do it by       >>> redirection into a pipe or file for subsequent processing for       >>> display) ?       >>>       >>> Also, I want to be sure that the output file has been       >>> compressed into a form which all normal decompressers,       >>> and most operating systems, can decode.       >>       >> 7-Zip doesn't have any speed throttling feature. Everything will run as fast       >> as possible.       >>       >> The only thing which can affect compression speed, is the number of CPU core       >> usage limit, as well as compression type and/or parameters.       >>       >> Use third party tool such as BES to throttle the speed of any application.       >> It can be used to set an application speed to e.g. 33% of its full speed.       >>       >> 7-Zip doesn't support text mode interactive command input like the DISKPART       >> tool either. There's probably other archiever software that has such       >> feature, but I haven't seen any or tried to find one.       >>       >> However, with VBScript for example, it can be used to buffer the 7-Zip       >> output, and spit the lines onto screen at slower speed. Of course, this       >> means that while the lines are still being spitted out by the script, 7-Zip       >> may already finished its job and its process has already been terminated.       >       >       > Thanks. That's saved me a lot of time looking for what is not there.       >       > I can quieten 7-ZIP by redirecting screen output to nul, or to a log file.       >       > Before 64-bit Windows 10, I had several batch files for this task.       >       > In the middle, all had one-to-several lines each calling traditional 16-bit       ZIP to work on all or part of a group.       >       > When I lost 16-bit capability, I retained the original files for reference       and altered copies. I replaced ZIP by calling my ZYP.BAT, which functions by       writing to a Windows compressed folder, largely using somebody else's work.        That has a timeout of        about 60ms per file, so filenames would appear at a nice 16 per second. The       original author wrote a *.BAT file which executed part of itself as JScript.       >       > I have now replaced using ZYP.BAT by using 7Z.EXE, retaining originals; it       works, but I miss the readable display of filenames.       >       > So I have thought that instead of providing the work-list within code, I       could provide it as a plain-text file to pass to a single compression engine -       no real benefit yet - but I could interleave the 7Z calls with ZYP calls on       the same data, which        would provide on screen what I want to look at, and I could modify ZYP to       throw away its compresses output, but using part of the code of ZYP that       expands the wildcards and displays the names. Or, as the names of the files       are now available, I could use        a separate 7Z call for each file.       >       > The question for me is whether the result of doing that will be worth the       effort.       >       make a batch:       1. dir /B astr*.htm > file.txt       2. dir /B grav*.htm >> file.txt       3. take last file from file.txt into variable       4. 7Z a ASTRGRAV.ZIP %variable%       5. loop        delete last file from file.txt        If file.txt empty GOTO 6        take last file from file.txt into variable        7Z add %variable% to ASTRGRAV.ZIP        timeout xx << so you can see variable        repeat        6. del file.txt and exit              Alternative is let original command run and after finish open zip and       look at list.       --       Zaidy036              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca