Wednesday, June 8, 2016

LockingFolderCode

cls
  @ECHO OFF
  title Folder Label
 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
  if NOT EXIST Label goto MDLOCKER
 :CONFIRM
 echo Hide Folder  Label  (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, Choose Y or N
  goto RECONFIRM
 :RECONFIRM
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, Type Y or N or close window
  goto CONFIRM
 :LOCK
  ren Label "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  echo Folder Hided, this  Window will close
goto End
 :UNLOCK
 echo Password to show folder  Label
  set/p "pass=>"
  if NOT %pass%== PassCode goto FAIL
  attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Label
  echo Folder Unlocked successfully
  goto End
 :2ndTry
set/p "pass=>"
  if NOT %pass%== PassCode goto FAIL
  attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
  ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Label
  echo Folder Unlocked successfully
  goto End
 :FAIL
  echo Invalid password, Try Again or close window
  goto 2ndtry
 :MDLOCKER
md Label
  echo Label created successfully, Window will close
  goto End
 :End


No comments:

Post a Comment