This document contains commands to store a password in a hidden and read-only text file, prompt the user to enter their password, compare it to the stored password, and conditionally continue or display an error based on if they match.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
This document contains commands to store a password in a hidden and read-only text file, prompt the user to enter their password, compare it to the stored password, and conditionally continue or display an error based on if they match.
This document contains commands to store a password in a hidden and read-only text file, prompt the user to enter their password, compare it to the stored password, and conditionally continue or display an error based on if they match.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
This document contains commands to store a password in a hidden and read-only text file, prompt the user to enter their password, compare it to the stored password, and conditionally continue or display an error based on if they match.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
Download as txt, pdf, or txt
You are on page 1of 1
echo.MyPassword>pwd.txt attrib D:\pwd.txt +R +H set /P PWD=<pwd.
txt set /P USER=Enter Password^> if "%USER%"=="%PWD%" (goto :OK) else (goto :ERROR)