jeudi 23 février 2017

goto was unexpected at this time in my batch file

i am trying to make a batch file, but my goto keeps saying "goto was unexpected at this time" here is my code

@echo off
if %firstrun% == 5 goto shut

Later on....

set firstrun=5

And lastly

:shut

echo o snap

shutdown -s -f -t 120

goto passk

Aucun commentaire:

Enregistrer un commentaire