11 月 152009
 

Bat To Exe Converter v1.5 - 批次檔轉執行檔 :: 綠色工廠 Easylife Blog

以前我常常會寫一些bat的檔案方便在電腦上作業,但是其實也都是一些很簡單的指令,可能就是從網路芳鄰抓取command的程式,然後利用command開始自動掃描,然後再將掃毒結果丟回遠端的電腦,我就只要在遠端等結果就好。

http://www.f2ko.de/English/b2e/index.php

但若是使用者將掃毒是窗關閉的話,那麼就得再去用一次,其實這是很不方便的一件事情,若能轉成一個執行檔就方便多了,將執行檔放入背景執行就可以減少被誤關的風險,因此bat轉exe還是有那麼一點必要性,大家若有什麼需求的話也可以試試看囉!

我試存了一個【系統清理.exe】,大家可以來清理系統唷!

@echo off
@echo off
echo 正在清除系統垃圾文件,請稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del c:\setup.exe /f /q
del c:\autorun.inf /f /q
del /f /s /q C:\windows\system32\drivers\spoclsv.exe
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /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\*.*"
del /f /s /q "C:\Documents and Settings\Administrator\UserData\*.*"
del C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP6\PdmHist\*.history /f /q
DEL /S /F /Q "%systemroot%\Temp\*.*"
DEL /S /F /Q "%AllUsersProfile%\「開始」功能表\程式集\Windows Messenger.lnk"
RD /S /Q %windir%\temp & md %windir%\temp
RD /S /Q "%userprofile%\Local Settings\Temp"
MD "%userprofile%\Local Settings\Temp"
RD /S /Q "%systemdrive%\Program Files\Temp"
MD "%systemdrive%\Program Files\Temp"
RD /S /Q "%systemdrive%\d"
net user aspnet /delete
cleanmgr /sagerun:99
echo 更新內容
echo 增加使用 附屬應用程式 "清理磁碟"
echo 增加清理%systemdrive%\Program Files\Temp
echo 增加清理%userprofile%\Local Settings\Temp
echo 增加清理%systemdrive%\Program Files\Temp
echo 增加清理%AllUsersProfile%\「開始」功能表\程式集\Windows Messenger.lnk
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
echo 清除系統垃圾完成!

echo. & pause

  2 Responses to “Bat To Exe Converter v1.5 - 批次檔轉執行檔”

  1. 批次檔寫完了以後有什麼指令要怎麼轉換為執行檔(不要工具程式)???

  2. 您上面的檔案和指令...系統說無效!!!

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

CAPTCHA Image
Play CAPTCHA Audio
Reload Image