Jump to content

Recommended Posts

Posted

Is it possible to include a number of statements to be executed in a FOR loop?

For example:

FOR /L %%A in (1,1,10) DO

{

statement1

statement2

statement3

}

All help is greatly appreciated.

Johnny


Posted

:lol:

replace { } by ( ) :

FOR /L %%A in (1,1,10) DO (

statement1

statement2

statement3

)

and yes, the openning prenthesis must be on the FOR line.

you should read the included help :

for /?

if /?

set /?

cmd /?

and so on...

bye

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...