Welcome, Guest. Please login or register.

Author Topic: for..each in CLI  (Read 1354 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline pieter1976Topic starter

  • Newbie
  • *
  • Join Date: May 2011
  • Posts: 1
    • Show only replies by pieter1976
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?
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
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.
 

Offline gertsy

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 2318
  • Country: au
  • Thanked: 1 times
    • Show only replies by gertsy
    • http://www.members.optusnet.com.au/~gbakker64/
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 #?.