I stated my intention to come:
On a folder encryption, to answer a different question the competence to enter a different (read-only, full control)
I wrote back some of that in BAT used cacls to control authority, is in front of the limited capacity could not be realized,
I originally wanted to use VBS, but in areas such as access control is very troublesome, so ask to come here!
Title Please answer the Ques
Color 7F
cacls C:\test /t /e /c /d administrator
:Cho
@Echo Please choose to answer the following questions@Echo 1.**********
@Echo 2.**********
@Echo 3.**********
set /p choice= Please enter the serial number:
if "%choice%"=="1" goto que1
if "%choice%"=="2" goto que2
if "%choice%"=="3" goto que3
if defined choice goto Cho
exit
:que1
@echo Please answer the question1:**********
set /p quecho1= Please enter the answer:
if "%quecho1%"=="an1" goto an1
else (echo ERROR!) goto que1
:que2
@echo Please answer the question2:**********
set /p quecho2= Please enter the answer:
if "%quecho2%"=="an2" goto an2
else (echo ERROR!) goto que2
:que3
@echo ..............:**********
set /p quecho3= .........:
if "%quecho3%"=="an3" goto an3
else (echo ERROR!) goto que3
:an1
cacls C:\test /t /e /c /g administrator:f
start C:\test
exit
:an2
cacls C:\test /t /e /c /g administrator:r
start C:\test
exit
:an3
cacls C:\test /t /e /c /g administrator:c
start C:\test
exit