PowerShell - Farewell to For
PowerShellPowerShell - Farewell to ForPowerShell - Farewell to For
In my last article ( Goodbye,Goto ), I described how batch files handle common iteration (repeating or looping) and subroutines using theGotoand Call commands, and the most commonPowerShelllanguage constructs that replace those commands. Batch files have one last iteration command command that you still need to know how to replace inPowerShell: The For command.
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.