hi all,
i kinda new to programming, i am trying to use program to lock my notepad so only i can have the access to the notepad. Have anyone got an ideal or programming that i can use on it? I have surf the net for the source code only find out this set of instruction which is in .bat format. The .bat format is just another program instruct to open the file if password is correct BUT my problem is I want to put password on that particular notepad and use password to open the same notepad NOT redirect me to the notepad. Need help on this..really appreciate it..
::START
@echo off
cls
: password
set input =
set /p input = password
:
if %input% == ( my password ) goto YES
if not %input% == (my password) go to NO
:YES
start (your program address etc MS Paint.exe)
:NO
echo incorrect password
goto password
::END
:: Save as xxxx.bat
Rgds,
Anthony
i kinda new to programming, i am trying to use program to lock my notepad so only i can have the access to the notepad. Have anyone got an ideal or programming that i can use on it? I have surf the net for the source code only find out this set of instruction which is in .bat format. The .bat format is just another program instruct to open the file if password is correct BUT my problem is I want to put password on that particular notepad and use password to open the same notepad NOT redirect me to the notepad. Need help on this..really appreciate it..
::START
@echo off
cls
: password
set input =
set /p input = password
:
if %input% == ( my password ) goto YES
if not %input% == (my password) go to NO
:YES
start (your program address etc MS Paint.exe)
:NO
echo incorrect password
goto password
::END
:: Save as xxxx.bat
Rgds,
Anthony