computing
  • 0

Solved SET /P Timeout ?

  • 0

is there some way, sort of like a pause command, that would
continue the program after a certain amount of time?
for example:

SET /P A = “What is the password?” [the timeout would be part of the ‘SET /P’]
IF A = 1 (
goto Correct
)
goto incorrect

so you would have a limited amount of time to enter the correct password

Share

0 Answers

  1. If the batchfile is launched from the commandline by the user, the password could
    be made as the second (or nth) token: TESTPASS passwd
    which might “workaround” the problem. Otherwise, I agree with Razor, 3rd party…
    • 0