Reputation: 19
i am trying to use the "timeout" command in a batch script, and it says "ERROR: Invalid syntax. Default option is not allowed more than one time(s)" and it closes the script after. Can anyone help me fix this? The code is as follows
@echo off
title {REDACTEDPRIVATESTACKOVERFLOW}
echo {REDACTEDPRIVATESTACKOVERFLOW}
timeout /t 3 /timeout
echo {REDACTEDPRIVATESTACKOVERFLOW}
Upvotes: 0
Views: 386
Reputation: 79
It just worked for me in the following way:
echo "hi"
timeout 3
echo "hi"
Upvotes: 1