Have you ever wanted to add password protection to a windows batch script? Read on to find out how
Steps
Open notepad by going to Start> All Programs> Accessories> Notepad.
Vista and 7 users can just type "notepad", without quotes, into the start menu and hit enter
Copy the following code:
- :A
- echo enter password to activate programme
- set/p "pass=>"
- if NOT %pass%== passwordhere goto :FAIL
- :FAIL
- echo Invalid password
- goto :end
- :end
0 comments: