How to use the bat or vbs to prevent the opening of a folder ?

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
 
Does not matter, my purpose is only to this folder encryption
I need to complete the process in front of the monitor folder to open part of
thanks!
 
What do you exactly want to do? You want a BAT or VB script that runs as soon as someone tries to access a file in a specific folder, and asks for password before it lets you open/access them? Do you want any kind of encrpytion?

If I understood you right, you're basically looking for a way to protect files without the trouble of archiving them or something like that, correct?
 
Back
Top