PowerShell Tutorial 8 : ForEach Loops [Beginners]

preview_player
Показать описание
Loops in PowerShell, Foreach loops in this video, we take a look at the 3 different versions of the foreach loop and compare them to iterative version of code, in the next video we will go over the other kinds of loops in powershell like the for, while, do-while, do-until loops.

Tags:
Powershell
scripting
coding
Loops
Foreach
Рекомендации по теме
Комментарии
Автор

These guides are excellent! Thank you so much for putting your time into it.

greenhoodie
Автор

Well done. Very clear explanations. Keep up the good work.

que
Автор

Thank you very much !!! I can clear quest because of you thank you !!

성이름-ir
Автор

Thanks alot. But can someone explain where the variable $Name came from in the foreach section. I do not see where/when the $Name variable was created.

Only $Names, $filepath, $current has been created. How does the script know what to do with $Name.

Thanks!

iamrichard
Автор

Is anyone able to explain why the original filepath variable is pointing to names.txt? Then the $Names vaiable is using get content on that filepath. Doesn't that just get the content of the text inside the Names.txt file?

lawrence
Автор

in the first method, how is the variable $Name working if we never set it up before? Am I missing something?

sinestesiagarcia