@echo off title 進程管理 color 3F echo 進程管理 批處理小型化版 echo. echo lxsea 基拉 freedom echo 適用于任務管理器無法打開的簡單操作和平時的病毒判斷 echo www.lxsea.com tasklist pause color B1 echo 保存資料(將在此目錄下生成.csv文件) echo. echo 如果你以前保存過資料 將會對現在和以前的資料進行比較 請注意看比較結果 echo. echo 每使用一次 就會對進程的文件進行更新 echo. echo 第二次使用會把tasklist1改為tasklist0 ,下一次進行就會把tasklist0刪除,循環往復 pause if exist tasklist0.csv del /q tasklist0.csv if exist tasklist1.csv ren tasklist1.csv tasklist0.csv tasklist/fo:csv>tasklist1.csv if exist tasklist0.csv fc tasklist1.csv tasklist0.csv echo 停止進程 根據PID結束 echo 進程ID可看上表的數據 echo 停止有危險 請慎重選擇 echo 如不想操作 請直接關閉 color FC set Output= set /p Enter=請輸入PID: NTSD -C Q -P %Enter% echo 歡迎光臨理想技術論壇 www.lxsea.com pause :end
這個是用于比較文件的批處理(現在看來簡直幼稚?。?
復制代碼 代碼如下:
@echo off color FC title 檢查C:/WINDOWS/system32下的dll文件和exe文件 echo. ------------------------------------------------------------------------------- echo. 檢查 echo. C:/WINDOWS/system32下的dll文件和exe文件 echo. made by 基拉freedom echo. wwww.lxsea.com 歡迎光臨 echo. ------------------------------------------------------------------------------- echo. 第一次運行將會產生0.txt 記錄exe以及dll文件 echo. 第二次將會產生1.txt 并自動與0.txt進行比對 echo. 用來判斷是否產生新文件 echo. 這樣做是因為system32為病毒喜愛躲藏點 if not exist 0.txt goto begin rem 判斷是否有0.txt if exist 1.txt del 1.txt rem 判斷是否有1.txt 有則刪除 ren 0.txt 1.txt rem 將0.txt改為1.txt :begin dir /B /A: C:/WINDOWS/system32/*.exe >0.txt & dir /B /A: C:/WINDOWS/system32/*.dll >>0.txt rem 以上/A:是顯示全部文件的意思 echo. echo. echo ┌────────────────────────────────────┐ set/p= ■<nul for /L %%i in (1 1 20) do set /p a=■<nul&ping /n 1 127.0.0.1>nul echo 100%% echo └────────────────────────────────────┘ IF ERRORLEVEL 1 echo 失敗了 也許是您的系統不是裝在C盤 IF ERRORLEVEL 0 echo 成功創建 if not exist 1.txt goto end set /p s=按回車鍵 進行文件的比較 cls color 8F echo. 出現差異 則會出現(舉例): echo. ***** 0.txt---------文件0.txt echo. ***** 1.TXT---------文件1.txt echo. 123.dll-------------文件0.txt中與1.txt的不同 echo. 12.exe--------------文件0.txt中與1.txt的不同 echo. *****---------------除以上的 1.txt與0.txt的其他內容相同 echo. 說明0.txt與1.txt不同的是 0.txt中多了123.dll和12.exe這兩個文件 這是要注意了! set /p j=按回車鍵 開始 fc 0.txt 1.txt :end set /p =按回車鍵退出