Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- title Folder Private
- :CHECK
- dir /ah Private >nul 2>nul && (
- goto UNLOCK
- ) || (
- goto LOCK
- )
- :LOCK
- attrib +h +s Private
- echo Folder locked
- goto End
- :UNLOCK
- echo What is your name
- set/p "pass=>"
- if NOT %pass%== Your_password goto FAIL
- attrib -h -s Private
- echo Folder Unlocked successfully
- goto End
- :FAIL
- echo Invalid name
- goto UNLOCK
- :MDLOCKER
- md Private
- echo Private created successfully
- goto End
- :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement