I have been browsing the internet looking for simple ways to password protect a folder in Windows 7 without any extra software nor BitLocker.
I have found several places that state that using a .bat file (and then converting it to an .exe file to avoid people opening it in a text editor and making sense of it) would allow this.
However something tells me this is a not very secure system.
I share here some of the typical .bat file's code they claim to work and password protect the folder:
@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== wonderhowtogoto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDPrivate
md Private
echo Private created successfully
goto End
:End
Would this be easy to crack after we export it into an .exe file? What if I encrypt the .exe file for extra security?
And also, would the folder need to be hidden for this "trick" to work?
What are those keys like 21EC2020-3AEA-1069-A2DD-08002B30309D
?
Thanks very much for throwing some light over here.
if NOT %pass%== wonderhowtogoto FAIL
->if NOT %pass%== wonderhowto goto FAIL
goto FAIL