OS4 DepotLogo by Alkaron 
(anonymous IP: 216.73.216.169,2518) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
   Markdown composer
 

 Categories

   o Audio (351)
   o Datatype (51)
   o Demo (214)
   o Development (629)
   o Document (24)
   o Driver (103)
   o Emulation (155)
   o Game (1063)
   o Graphics (516)
   o Library (123)
   o Network (243)
   o Office (69)
   o Utility (962)
   o Video (74)

Total files: 4577

Full index file
Recent index file

 Links

  Amigans.net
  Aminet
  IntuitionBase
  Hyperion Entertainment
  A-Eon
  Amiga Future


Support the site


 File comments for:  Utility » Misc » foreach_igracki.lha

Foreach Igracki

Description: Execute a command for every argument
Download: foreach_igracki.lha
Version: 1.1
Date: 28 Jul 2013
Category: utility/misc
FileID: 8103
RSS Feed url: https://os4depot.net/modules/comments/rssfeed.php?file=utility/misc/foreach_igracki.lha

[Back to readme page]   [Add Comment]   [Refresh page]

Comment by: Severin (91.125.91.55)At: 07 Aug 2013, 00:49File version: 1.1

I tried Foreach tonight and would like to be able to use %s at least twice in the command for redireting the output from a program that just dumps data to the shell eg.

Foreach FILE "#?.jpg" DO "djpeg -scale 1/8 %s >ram:%s"

gives:

NIL::1: djpeg: unable to open redirection file NIL::1: djpeg failed returncode 10

with verbose on I get:

Foreach FILE "#?.jpg" DO "djpeg -scale 1/8 %s >ram:%s" verbose 0. cmd = "djpeg -scale 1/8 8033.jpg >ram:" NIL::1: djpeg: unable to open redirection file NIL::1: djpeg failed returncode 10

It would be far easier than doing;

list #?.jpg lformat "djpeg -scale 1/8 "%N" >"ram:%N"" to pipe: | execute pipe:

all the time...

 
 

Copyright © 2004-2026 by Björn Hagström All Rights Reserved