Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Amiga computer related discussion
»
General chat about Amiga topics
»
for..each in CLI
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: for..each in CLI (Read 1357 times)
Description:
0 Members and 1 Guest are viewing this topic.
pieter1976
Newbie
Join Date: May 2011
Posts: 1
for..each in CLI
«
on:
August 20, 2011, 12:23:36 AM »
I'd like to create a CLI batch file doing something like this:
For Each
in
Do
{}
But i don't know how.
Anyone?
Logged
SamuraiCrow
Hero Member
Join Date: Feb 2002
Posts: 2281
Country:
Gender:
Re: for..each in CLI
«
Reply #1 on:
August 20, 2011, 04:37:03 PM »
Use the "spat" script in s: to do it. It uses the list command with formatting options to write a temporary script in t:, then executes it.
Logged
gertsy
Lifetime Member
Hero Member
Join Date: May 2006
Posts: 2318
Country:
Thanked: 1 times
Re: for..each in CLI
«
Reply #2 on:
August 21, 2011, 02:48:32 PM »
Hmm, No PC DOS commands don't work. Samurai's tip to create a executable script made up of your commands for each file sounds like the way to go.
If what you are doing is file property based you can use wild cards #?.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Amiga computer related discussion
»
General chat about Amiga topics
»
for..each in CLI
There was an error while thanking
Thanking...