Hi Tom, > On Aug 1, 2017, at 10:27 AM, Tom Ehlert <t...@drivesnapshot.de> wrote: > > >>> Hi Jerome, >>> I've just tried your veach.com utility and it looks like it shall really >>> come in handy! I was missing a program capable of appending a command to a >>> sorted list (like a | in Unix ) . >>> Nice job, and thanks for your effort > >> Thank you. > >> Just like you, I would find myself either doing some things the long way >> because >> there was just no easy way to do X on a list of things. Wether that list was >> some >> generic things I wanted to run through a program or something more complex. > >> Besides, what other utility will let suicidally run every program in a >> directory with a >> simple “veach /d *.* /c /x” command? :-) > >> I could have really used veach in FDI. But, I didn’t require it. With all >> the ASCIIZ >> string juggling and parsing it would need to do, I procrastinated making it. >> But alas, >> I finally got to it. > > veach /d *.bmp /x resize * /scale 50% > > is more or less the same as > > FOR %i in (*.bmp) do resize %i /scale 50% > > (use %%i when used in batch files) > > from a batch file, FOR has also lower memory requirements although > this is most likely irrelevant for FDI > > unfortunately this turns up a bug in FOR: > > > for %i in (*.*) do echo %i > > works as expected, also echoing the command itself. > > E:\FREEDOS\SRC>echo SOFTIC~1.IMA > SOFTIC~1.IMA > > however > > for %i in (*.*) do @echo %i > > E:\FREEDOS\SRC>@echo SOFTIC~1.IMA > Bad command or filename - "@ECHO". > > > bug report filed > > Tom. >
Yep, however the FOR like stuff in veach was added to be mostly "feature complete" The main need was for doing stuff like this: veach /f base.lst /f extra.lst /s /x install.bat * @ # (Why it should do uniques) That would combine and sort two lists in files, then pass them each to install.bat with an index and count. Or, take the output of grep and do the same: grep -iv "^;" stuff.lst | veach /I /S /X install.bat * @ # Or combine stuff from the pipe and a file with /f & /i Or crazy things like veach /d *.com /d *.exe /S /L | grep -iv ^D | veach /I /X showme @ # * But again, FOR does have its advantages too. FOR really doesn't eat any RAM. It also can set ENV variables. Calling a BAT file over and over would be faster. And some other stuff. You can accomplish the stuff veach provides in other ways. After all, FDI does some of that now. But, veach does seem to simplify a lot of it. Jerome > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user