HN-Community
Membuat Compraser [batch version] - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+--- Thread: Membuat Compraser [batch version] (/thread-9140.html)



Membuat Compraser [batch version] - Blacker_onliners - 07-06-2011

hehehe lama kgk ktemu gara" nih project.
trnata dri batch kta bsa bkin Compraser mcam Winrar ato Winzip.
yg kta gunain adalah prntah "makecab" dan "extract32"

makecab dgunakan wat mbikin file cab (cabinet) yg mrupakan hsil compresan itu.

extract32 d gunakan wat mengextract file cabinnet trsbut.
untuk lbih jlas na lngsung praktek aj ye... :)

Code:
@echo off :Menu mode 22,7 cls color 0a tItle CAB Compresor echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo ºú1: Compres File º echo º 2: Uncompres File º echo º 3: About º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊ echo. set /p choIce=--^> for %%a In (1, 2, 3) do If %choIce%== %%a goto CAB%%a Echo error 505: InvalId Input pause>nul cls goto menu :CAB1 cls set /p File=Input File to Compres ^> set /p des=Input File DestInItIon ^> set /p ver=Input VerbosIty Level(1,2,3)^> set /p nam=Input New Name to File.cab ^> makecab /v%ver% /L %des% %File% %nam% msg * File succesfully Compres pause>nul goto Menu :CAB2 cls set /p File=Input File to UNCompres ^> set /p des=Input File DestInItIon ^> set /p nam=Input New Name to File Uncompresed ^> Extrac32 %File% %des%\%nam% msg * File succesfully UNCompres pause>nul goto Menu :CAB3 title About winCAB cls echo it's only simple Code to Compres or Uncompres echo Created By Blacker Onliner. echo Enjoy it :) pause>nul goto Menu

tulis script d atas ke notepad dan save dgn nama .bat
trus eksekusi dan nikmati hasilnya.

sekian dlu. ahhahaha