For loop with Delims in Batch Script

preview_player
Показать описание
Go and check out course on Udemy for PowerShell:
****************************************************************************************

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.
Рекомендации по теме
Комментарии
Автор

How to do if I want to work inside %%g

prajinpv
Автор

Khn gayab ho jate ....no bhi band apka

prateekkaushik
Автор

Can you help me with bypassing AV software with my custom executable? Can u give me your email?

fwiii