Batch file password!
I have been programing a batch file for a folder i wuold like to protect. But The batch script will not work no matter how hard i try. I'm not too familiar with the set command and believe this is where i am going wrong. I would appreiciate help with this. And if anyone has recommended sources i would find this hand. Here is what i have so far. I have replaced the file route and passord this is not the programming error:
title Open File
Echo Please enter password
if %pass%=="my password" goto passed
if NOT %pass%=="my password" goto FAIL
Echo Incorrect Login
Thanks in adveanced.
Re: Batch file password!
SET with the prompt option works like this:
(Or "HELP SET > set.txt" and read it in notepad.)
HELP by itself lists all commands.
Google "windows batch files" for tutorials.
|All times are GMT +5.5. The time now is 05:52.|