Go and check out course on Udemy for PowerShell:
https://www.udemy.com/course/powershe...
****************************************************************************************
The ‘for’ statement also has the ability to move through a range of values. Following is the general form of the statement.
Syntax
FOR /L %%variable IN (Lower ,Increment, Upper) DO your_code
Where
The /L switch is used to denote that the loop is used for iterating through ranges.
Variable declaration – This step is executed only once for the entire loop and used to declare any variables which will be used within the loop. In Batch Script, the variable declaration is done with the %% at the beginning of the variable name.
The IN list contains of 3 values. The Lower , the increment, and the Upper. So, the loop would start with the Lower and move to the Upper value, iterating each time by the Increment value.
The your_code code block is what needs to be executed for each iteration.
On this page of the site you can watch the video online For loop with Delims in Batch Script with a duration of hours minute second in good quality, which was uploaded by the user Techno Puffin 30 April 2021, share the link with friends and acquaintances, this video has already been watched 3,682 times on youtube and it was liked by 25 viewers. Enjoy your viewing!