k2k 5 Posting Whiz

Today I have finally made up my mind to quit bat scripting and go for powershell... I need to do a quick script bascially trying to looping through a command output.. can anyone shed some light?

i tried

foreach ($col in 'app-command -argument')
    { echo $col }

well, guess my guess isn't correct. Can anyone help me with this? Thanks thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.