Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- COLOR A5
- TITLE ~~~***NAJEEB SHAH KHAN FOLDER LOCK***~~~
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=START=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- set /a tries=3
- :start
- cls
- ECHO ~~~*** NAJEEB SHAH KHAN FOLDER LOCKER***~~~
- echo %TIME% %DATE%
- echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- echo %tries% attempt(s) left.
- echo ----------------------------------------------
- echo.
- ECHO nir,new,rar,urar,ext,ren,pic,hid,uhid,cop,mov,fol,del,nsk,fin
- echo -----------------------------------------------------------------------
- echo.
- ::Start LOCKER.exe
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Set /p FOL= ENTER FOLDER NAME:
- if %FOL%==nir goto Nircmd
- if %FOL%==new goto NEW
- if %FOL%==rar goto winrar
- if %FOL%==urar goto unrar
- if %FOL%==ext goto ext
- if %FOL%==ren goto ren
- if %FOL%==pic goto PIC
- if %FOL%==hid goto hide
- if %FOL%==uhid goto unhide
- if %FOL%==cop goto cop
- if %FOL%==mov goto mov
- if %FOL%==fol goto fol
- if %FOL%==del goto del
- if %FOL%==nsk goto nsk
- if %FOL%==fin goto FIND
- set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOL%' -AsSecureString ; ^
- $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
- [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
- for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASSWORD1=%%p
- for /f "Delims=" %%a in (%CD%\%FOL%\PW.ini) do (
- set TEXT=%%a
- )
- if %PASSWORD1%==%TEXT% goto correct
- echo you are wrong!!!
- set /a tries=%tries -1
- if %tries%==0 goto penalty
- cls
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :penalty
- echo Sorry, too many incorrect passwords, DELETE FOLDER %FOL%.
- rmdir /S /Q "%FOL%"
- pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-WINRAR-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :winrar
- COLOR 1B
- cls
- set /p FOLR= Type WINRAR Folder Name :
- set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOLR%' -AsSecureString ; ^
- $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
- [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
- for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASS=%%p
- "%CD%\LOCKER\Rar.exe" a -r -p%PASS% %CD%\%FOLR%\%FOLR% %CD%\%FOLR%\*.*
- Attrib +H +S +R %CD%\%FOLR%\%FOLR%.rar
- Del /q /a:a %CD%\%FOLR%\*.*
- pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-UNRAR-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :unrar
- COLOR 1B
- cls
- set /p FOLR= Type UNRAR Folder Name :
- set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOLR%' -AsSecureString ; ^
- $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
- [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
- for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASS=%%p
- Attrib -H -S -R %CD%\%FOLR%\%FOLR%.rar
- "%CD%\LOCKER\UnRaR.exe" e -r -p%PASS% %FOLR%.rar %FOLR%
- Del /q /a:a %CD%\%FOLR%\%FOLR%.rar
- pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-CORRECT-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :correct
- echo you are right!!!
- START %CD%\%FOL%\
- pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-NEW-FOLDER-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :NEW
- COLOR 1B
- cls
- Echo You Make New Password Folder
- Set /p FOLN= ENTER NEW FOLDER NAME:
- MD %FOLN%
- set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOLN%' -AsSecureString ; ^
- $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
- [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
- for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASSWORD=%%p
- Echo %PASSWORD% > %FOLN%\PW.ini
- Attrib +H +S +R %FOLN%\PW.ini
- Attrib +H +S +R %FOLN%
- pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Extension-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :ext
- COLOR 1B
- cls
- set /p FOLR= Type EXT Folder Name :
- set /p input= Original File Type Change Extension Only =
- set /p input2= Type Change Extension Only =
- ren *.%input% *.%input2%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Rename-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :ren
- COLOR 1B
- cls
- set /p FOLR= Type Rename Files Folder Name :
- set /a Index=1
- set /p idA= Enter Alphabet Letters:
- set /p id= Enter Files EXT Only:
- setlocal enabledelayedexpansion
- for /r %%i in (%FOLR%\*.%id%) do (
- rename "%%i" "%idA%"!Index!.%id%"
- set /a Index+=1
- )
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Copy=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :cop
- COLOR 1B
- cls
- set /p FOLR= Type Copy Files Folder Name :
- set /p File= Type File Extension Only:
- set /p Path= Type Copy Path :
- copy /y %FOLR%\*.%File% %Path%
- echo %username%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Move=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :mov
- COLOR 1B
- cls
- set /p FOLR= Type Move Files Folder Name :
- set /p File= Type File Extension Only:
- set /p Path= Type Move Path:
- move /y %FOLR%\*.%File% %Path%
- echo %username%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Folders=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :fol
- COLOR 1B
- cls
- set /p FOLR= Type Make Folder Name :
- set /p id= Enter the Folder Name to be created:
- (
- MD %FOLR%\%id%
- )
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Hide=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :hide
- COLOR 1B
- cls
- set /p FOLR= Type Hide Files Folder Name :
- set /p Hide= Type File Only EXTENSION:
- Attrib +h +s %FOLR%\*.%Hide%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-UnHide=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :unhide
- COLOR 1B
- cls
- set /p FOLR= Type UnHide Files Folder Name :
- set /p Unh= Type File Only EXTENSION:
- Attrib /S -h -s %FOLR%\*.%Unh%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-PICTURE HIDE=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :PIC
- COLOR 1B
- cls
- set /p FOLR= Type PIC-To-RAR Folder Name :
- set /p File= Type Picture Name with Extension:
- set /p input= Type Hide RAR File Name with Extension:
- set /p File2= Type New Picture Name with Extension Save:
- Copy /b %CD%\LOCKER\%File%+%FOLR%\%input% %FOLR%\%File2%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Delete=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :del
- set /p input= Type Delete Extension Only :
- DEL /F %FOLR%\*.%input%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-NSK-COMMANDS=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :nsk
- COLOR 1B
- cls
- set /p FOLR= Type N-Command Folder Name :
- ECHO ~~~*** NAJEEB SHAH KHAN CMD COMMANDS***~~~
- echo %TIME% %DATE%
- echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ECHO ~**Most Commonly Used Internal and External DOS Commands Exmple**~
- ECHO.
- ECHO TYPE:Full Commands Type:Help /? , Any Commands /?
- Echo Attrib,Call,Cd,Copy,Cls,Clip,Date,Del,Dir,Edit,
- Echo Erase,Exit,Find,Findstr,For,Format,Help,If,
- Echo Md,Mkdir,Move,Path,Pause,Rd,Rmdir,Ren,Rename,
- Echo Set,Sort,Time,Tree,Type,Undelete,Ver,Vol,
- ECHO.
- cd %FOLR%
- set /P "input=Command: "
- call %input%
- Pause:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-FIND-TEXT=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :FIND
- COLOR 1B
- cls
- set /p FOLR= Type Folder Name :
- ECHO ~**Most Commonly Used Internal and External DOS Commands Exmple**~
- ECHO.
- ECHO TYPE: Commands And C.ini And More Text Files Search
- Echo Attrib,Call,Cd,Copy,Cls,Clip,Date,Del,Dir,Edit,
- Echo Erase,Exit,Find,Findstr,For,Format,Help,If,
- Echo Md,Mkdir,Move,Path,Pause,Rd,Rmdir,Ren,Rename,
- Echo Set,Sort,Time,Tree,Type,Undelete,Ver,Vol,
- ECHO.
- set /p findtext=Enter Word Search:
- set /p findfile=Enter File Path Name With Ext:
- CLS
- for /f "delims=" %%a in ('findstr %findtext% %CD%\LOCKER\%findfile%') do (
- ECHO FIND:%%a
- )
- PAUSE:
- goto start
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-NIRCMD=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- :Nircmd
- COLOR 1B
- cls
- ECHO TYPE: opn, cmd, com, home, PATH=PIC
- ECHO ----------------------------------------
- ECHO.
- Set PATH=LOCKER\nircmd.exe
- Set PIC=LOCKER\PIC
- set /p FOLS= TYPE NIRCMD OPTION :
- if %FOLS%==opn goto OP
- if %FOLS%==cmd goto Nir
- if %FOLS%==com goto COM
- if %FOLS%==home goto start
- :OP
- set /P PATH= ENTER PATH:
- Start %PATH%
- PAUSE:
- goto Nircmd
- :COM
- Start LOCKER\NirCmd.chm
- PAUSE:
- goto Nircmd
- :Nir
- set /P "input=Command: "
- call %PATH% %input%
- PAUSE:
- goto Nircmd
- ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-END=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Add Comment
Please, Sign In to add comment