Najeebsk

LOCKER.bat

Nov 15th, 2021 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 8.32 KB | None | 0 0
  1. @ECHO OFF
  2. COLOR A5
  3. TITLE         ~~~***NAJEEB SHAH KHAN FOLDER LOCK***~~~
  4. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=START=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  5. set /a tries=3
  6. :start
  7. cls
  8. ECHO                  ~~~*** NAJEEB SHAH KHAN FOLDER LOCKER***~~~
  9. echo                           %TIME%  %DATE%
  10. echo  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  11. echo                          %tries% attempt(s) left.
  12. echo               ----------------------------------------------
  13. echo.
  14. ECHO      nir,new,rar,urar,ext,ren,pic,hid,uhid,cop,mov,fol,del,nsk,fin
  15. echo -----------------------------------------------------------------------
  16. echo.
  17. ::Start LOCKER.exe
  18. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  19. Set /p FOL= ENTER FOLDER NAME:
  20. if %FOL%==nir goto Nircmd
  21. if %FOL%==new goto NEW
  22. if %FOL%==rar goto winrar
  23. if %FOL%==urar goto unrar
  24. if %FOL%==ext goto ext
  25. if %FOL%==ren goto ren
  26. if %FOL%==pic goto PIC
  27. if %FOL%==hid goto hide
  28. if %FOL%==uhid goto unhide
  29. if %FOL%==cop goto cop
  30. if %FOL%==mov goto mov
  31. if %FOL%==fol goto fol
  32. if %FOL%==del goto del
  33. if %FOL%==nsk goto nsk
  34. if %FOL%==fin goto FIND
  35. set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOL%' -AsSecureString ; ^
  36.       $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
  37.             [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
  38.  for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASSWORD1=%%p
  39.  
  40. for /f "Delims=" %%a in (%CD%\%FOL%\PW.ini) do (
  41. set TEXT=%%a
  42. )
  43. if %PASSWORD1%==%TEXT% goto correct
  44. echo you are wrong!!!
  45. set /a tries=%tries -1
  46. if %tries%==0 goto penalty
  47. cls
  48. goto start
  49. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  50. :penalty
  51. echo Sorry, too many incorrect passwords, DELETE FOLDER %FOL%.
  52. rmdir /S /Q "%FOL%"
  53. pause:
  54. goto start
  55. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-WINRAR-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  56. :winrar
  57. COLOR 1B
  58. cls
  59. set /p FOLR= Type WINRAR Folder Name :
  60. set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOLR%' -AsSecureString ; ^
  61.       $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
  62.             [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
  63.  for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASS=%%p
  64. "%CD%\LOCKER\Rar.exe" a -r -p%PASS% %CD%\%FOLR%\%FOLR% %CD%\%FOLR%\*.*
  65. Attrib +H +S +R %CD%\%FOLR%\%FOLR%.rar
  66. Del /q /a:a %CD%\%FOLR%\*.*
  67. pause:
  68. goto start
  69. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-UNRAR-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  70. :unrar
  71. COLOR 1B
  72. cls
  73. set /p FOLR= Type UNRAR Folder Name :
  74. set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOLR%' -AsSecureString ; ^
  75.       $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
  76.             [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
  77.  for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASS=%%p
  78. Attrib -H -S -R %CD%\%FOLR%\%FOLR%.rar
  79. "%CD%\LOCKER\UnRaR.exe" e -r -p%PASS% %FOLR%.rar %FOLR%
  80. Del /q /a:a %CD%\%FOLR%\%FOLR%.rar
  81. pause:
  82. goto start
  83. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-CORRECT-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  84. :correct
  85. echo you are right!!!
  86. START %CD%\%FOL%\
  87. pause:
  88. goto start
  89. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-NEW-FOLDER-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  90. :NEW
  91. COLOR 1B
  92. cls
  93. Echo You Make New Password Folder
  94. Set /p FOLN= ENTER NEW FOLDER NAME:
  95. MD %FOLN%
  96. set "psCommand=powershell -Command "$pword = read-host 'ENTER PASSWORD %FOLN%' -AsSecureString ; ^
  97.       $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
  98.             [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
  99.  for /f "usebackq delims=" %%p in (`%psCommand%`) do set PASSWORD=%%p
  100. Echo %PASSWORD% > %FOLN%\PW.ini
  101. Attrib +H +S +R %FOLN%\PW.ini
  102. Attrib +H +S +R %FOLN%
  103. pause:
  104. goto start
  105. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Extension-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  106. :ext
  107. COLOR 1B
  108. cls
  109. set /p FOLR= Type EXT Folder Name :
  110. set /p input= Original File Type Change Extension Only =
  111. set /p input2= Type Change Extension Only =
  112. ren *.%input% *.%input2%
  113. Pause:
  114. goto start
  115. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Rename-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  116. :ren
  117. COLOR 1B
  118. cls
  119. set /p FOLR= Type Rename Files Folder Name :
  120. set /a Index=1
  121. set /p idA= Enter Alphabet Letters:
  122. set /p id= Enter Files EXT Only:
  123. setlocal enabledelayedexpansion
  124.  
  125. for /r %%i in (%FOLR%\*.%id%) do (
  126.     rename "%%i" "%idA%"!Index!.%id%"
  127.     set /a Index+=1
  128. )
  129. Pause:
  130. goto start
  131. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Copy=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  132. :cop
  133. COLOR 1B
  134. cls
  135. set /p FOLR= Type Copy Files Folder Name :
  136. set /p File= Type File Extension Only:
  137. set /p Path= Type Copy Path :
  138. copy /y %FOLR%\*.%File% %Path%
  139. echo %username%
  140. Pause:
  141. goto start
  142. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Move=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  143. :mov
  144. COLOR 1B
  145. cls
  146. set /p FOLR= Type Move Files Folder Name :
  147. set /p File= Type File Extension Only:
  148. set /p Path= Type Move Path:
  149. move /y %FOLR%\*.%File% %Path%
  150. echo %username%
  151. Pause:
  152. goto start
  153. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Folders=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  154. :fol
  155. COLOR 1B
  156. cls
  157. set /p FOLR= Type Make Folder Name :
  158. set /p id= Enter the Folder Name to be created:
  159.  (
  160.     MD %FOLR%\%id%
  161. )
  162. Pause:
  163. goto start
  164. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Hide=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  165. :hide
  166. COLOR 1B
  167. cls
  168. set /p FOLR= Type Hide Files Folder Name :
  169. set /p Hide= Type File Only EXTENSION:
  170. Attrib +h +s %FOLR%\*.%Hide%
  171. Pause:
  172. goto start
  173. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-UnHide=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  174. :unhide
  175. COLOR 1B
  176. cls
  177. set /p FOLR= Type UnHide Files Folder Name :
  178. set /p Unh= Type File Only EXTENSION:
  179. Attrib /S -h -s %FOLR%\*.%Unh%
  180. Pause:
  181. goto start
  182. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-PICTURE HIDE=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  183. :PIC
  184. COLOR 1B
  185. cls
  186. set /p FOLR= Type PIC-To-RAR Folder Name :
  187. set /p File= Type Picture Name with Extension:
  188. set /p input= Type Hide RAR File Name with Extension:
  189. set /p File2= Type New Picture Name with Extension Save:
  190. Copy /b %CD%\LOCKER\%File%+%FOLR%\%input% %FOLR%\%File2%
  191. Pause:
  192. goto start
  193. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-Delete=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  194. :del
  195.  
  196. set /p input= Type Delete Extension Only :
  197. DEL /F %FOLR%\*.%input%
  198. Pause:
  199. goto start
  200. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-NSK-COMMANDS=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  201. :nsk
  202. COLOR 1B
  203. cls
  204. set /p FOLR= Type N-Command Folder Name :
  205. ECHO                  ~~~*** NAJEEB SHAH KHAN CMD COMMANDS***~~~
  206. echo                           %TIME%  %DATE%
  207. echo  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  208. ECHO    ~**Most Commonly Used Internal and External DOS Commands Exmple**~
  209. ECHO.
  210. ECHO    TYPE:Full Commands Type:Help /? , Any Commands /?
  211. Echo    Attrib,Call,Cd,Copy,Cls,Clip,Date,Del,Dir,Edit,
  212. Echo    Erase,Exit,Find,Findstr,For,Format,Help,If,
  213. Echo    Md,Mkdir,Move,Path,Pause,Rd,Rmdir,Ren,Rename,
  214. Echo    Set,Sort,Time,Tree,Type,Undelete,Ver,Vol,
  215. ECHO.
  216. cd %FOLR%
  217. set /P "input=Command: "
  218. call %input%
  219. Pause:
  220. goto start
  221. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-FIND-TEXT=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  222. :FIND
  223. COLOR 1B
  224. cls
  225. set /p FOLR= Type Folder Name :
  226. ECHO    ~**Most Commonly Used Internal and External DOS Commands Exmple**~
  227. ECHO.
  228. ECHO    TYPE: Commands And C.ini And More Text Files Search
  229. Echo    Attrib,Call,Cd,Copy,Cls,Clip,Date,Del,Dir,Edit,
  230. Echo    Erase,Exit,Find,Findstr,For,Format,Help,If,
  231. Echo    Md,Mkdir,Move,Path,Pause,Rd,Rmdir,Ren,Rename,
  232. Echo    Set,Sort,Time,Tree,Type,Undelete,Ver,Vol,
  233. ECHO.
  234. set /p findtext=Enter Word Search:
  235. set /p findfile=Enter File Path Name With Ext:
  236. CLS
  237. for /f "delims=" %%a in ('findstr %findtext% %CD%\LOCKER\%findfile%') do (
  238. ECHO FIND:%%a
  239. )
  240. PAUSE:
  241. goto start
  242. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-NIRCMD=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  243. :Nircmd
  244. COLOR 1B
  245. cls
  246. ECHO    TYPE: opn, cmd, com, home, PATH=PIC
  247. ECHO   ----------------------------------------
  248. ECHO.
  249. Set PATH=LOCKER\nircmd.exe
  250. Set PIC=LOCKER\PIC
  251. set /p FOLS= TYPE NIRCMD OPTION :
  252. if %FOLS%==opn goto OP
  253. if %FOLS%==cmd goto Nir
  254. if %FOLS%==com goto COM
  255. if %FOLS%==home goto start
  256. :OP
  257. set /P PATH= ENTER PATH:
  258. Start %PATH%
  259. PAUSE:
  260. goto Nircmd
  261. :COM
  262. Start LOCKER\NirCmd.chm
  263. PAUSE:
  264. goto Nircmd
  265. :Nir
  266. set /P "input=Command: "
  267. call %PATH% %input%
  268. PAUSE:
  269. goto Nircmd
  270. ::=-=-=-=-=-=-=-=-=-=-=-=-=-=-END=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Add Comment
Please, Sign In to add comment