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
)
Moderator: DosItHelp
Code: Select all
IF EXIST filename (
command 1
command 2
) ELSE (
command 1
command 2
command 3
)
Code: Select all
FOR /D %variable IN (set) DO (
command 1
command 2
)
Code: Select all
FOR /D %variable IN (set) DO (command 1 && command 2)