I want to create a batch file to retrieve a password from an EXE on the computer. It is a password that changes everyday.
I don't get any results with the code below.
set /p input="C:\Program Files\Password\PasswordGenerator
if %input%==q3Ym9fb goto YES
if not %input%==q3Ym9fb goto NO
:YES
echo correct password
pause
:NO
echo incorrect password
pause
set /p input
is for getting keyboard input, not the output from running a command.C:\Program Files\Password\PasswordGenerator