Kita tahu sendiri bahwa yang namanya DOS atau disk operating system adalah sesuatu yang hampir kita tinggalkan, namun dibalik itu semua, DOS memiliki kemampuan yang luar biasa… bahkan yang namanya batch file yang berdasar atas pemrograman DOS, mampu memberikan yang lebih..
Di bawah ini saya akan membagikan kode yang saya dapat dari suatu forum tentang pembuatan program untuk utilitas..
Pertama-tama buka notepad, lalu ketikkan source codenya,kemudian save dengan ekstensi *.bat
Jika anda ingin mengedit file tersebut, silakan klik kanan pada file yang akan diedit, lalu pilih edit.. secara otomatis akan dibuka melalui notepad, sedangkan untuk mengeksekusi, tinggal double click file tersebut.
Namun jika anda tidak menghendaki sourcenya diedit, tinggal konversi aja dari *.bat menjadi *.exe
PEMBERSIHAN SECARA CEPAT
@echo offecho Forum Informatika melakukan pembersihan ...del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /f /q %userprofile%\recent\*.*del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"del /f /s /q "%userprofile%\local settings\temp\*.*"del /f /s /q "%userprofile%\recent\*.*"echo Selesai! - http//if.web.idecho. & pauseMENGHAPUS COOKIES
cd %userprofile%%homedrive%del cookies\*.* /f /s /qMENGHAPUS FILE INDEX.DAT
@echo offdel "%homedrive%\documents and settings\default user\cookies\index.dat"del "%homedrive%\documents and settings\default user\localsettings\history\history.ie5\index.dat"del "%homedrive%\documents and settings\default user\local settings\temporary internetfiles\content.ie5\index.dat"del "%userprofile%\cookies\index.dat"del "%userprofile%\local settings\history\history.ie5\index.dat"del "%userprofile%\local settings\history\history.ie5\mshist012006032820060 329\index.dat"del "%userprofile%\local settings\history\history.ie5\mshist012006032920060 330\index.dat"del "%userprofile%\local settings\temporary internet files\content.ie5\index.dat"del "%userprofile%\userdata\index.dat"del "%homedrive%\documents and settings\localservice\cookies\index.dat"del "%homedrive%\documents and settings\localservice\local settings\history\history.ie5\index.dat"del "%homedrive%\documents and settings\localservice\local settings\temporary internetfiles\content.ie5\index.dat"del "%windir%\system32\config\systemprofile\local settings\history\history.ie5\index.dat"del "%windir%\system32\config\systemprofile\localsettings\history\history.ie5\mshist012006032320060 324\index.dat"del "%windir%\system32\config\systemprofile\local settings\temporary internetfiles\content.ie5\index.dat"