I need to protect a folder using a batch file
Using this command line:
@echo off
cls
echo Please enter a password to continue:
set /p inputchoice=
IF %inputchoice% equ password goto accessgranted
:deny
echo.
echo.
echo Access Denied
echo Please enter password to continue:
set /p inputchoice=
IF %inputchoice% equ password goto accessgranted
goto deny
:accessgranted
cls
echo Access Granted.
pause
exit
I need it so that when the folder is double-clicked on, the batch file opens up, blocking entry to the folder until the correct password is entered.
Thanks in advance.
P.S: The password for the batch command line is 'password' (minus the inverted commas)