For loop in command line

command line

Here is a simple way of doing a for loop in windows command line terminal with a start and end index values


FOR /L %%I IN (start,step,end) DO command 

Here is an example of deleting multiple ADCS rows


FOR /L %%I IN (1,1,50) DO (certutil -deleterow %%I)

Post a Comment

Previous Post Next Post