Brackets with If & For commands
Posted: 20 Jul 2008 22:52
Is it possible to have multiple commands with the If & for command?
Does
work? Or is the format different? Can we do multiple commands with if?
Does
work? Or is the format wrong? Can we do multiple commands with for?
Does
Code: Select all
IF EXIST filename (
command 1
command 2
) ELSE (
command 1
command 2
command 3
)
Does
Code: Select all
FOR /D %variable IN (set) DO (
command 1
command 2
)