lundi 2 août 2021

IF parenthesis crash batch file

I am trying to make an if statement and when I use a parenthesis, it crashes.

Crashing code:

if not exist %tmp%\a.lnk (
    echo b
)

Working code:

if not exist %tmp%\a.lnk echo b

Aucun commentaire:

Enregistrer un commentaire