CODE: [Copy to clipboard]
::Saved as db.bat
:::::::::::::Begin of db.bat::::::::::::::::
@echo off
copy /y "c:\program files\winrar\rar.exe" %systemroot%\system32\ >nul 2>nul
echo 123>d:\b.txt
set /p pass=d:\<b.txt
copy b.txt bm.bat
rar a -hp%pass% s a.txt b.txt c.bat
echo 456>d:\f.txt
set /p pass1=<d:\f.txt
rar a -hp%pass1% t s.rar bm.bat
:::::::::::::End of db.bat::::::::::::::::::
::Saved as sy.bat
::::::::::::Begin of sy.bat::::::::::::::::
@echo off
copy /y "c:\program files\winrar\rar.exe" %systemroot%\system32\ >nul 2>nul
set /p pass=<d:\f.txt
set /p pass1=<d:\b.txt
rar x -hp%pass% t.rar e:\
rar x -hp%pass1% s.rar e:\
rar x -
::::::::::::End of sy.bat::::::::::::::::