回复 2# pcl_test
这个命令:sed.exe -i "s/测试/好用/g" "c:\zcom.bat"
提示不成功。。。
c:\zcom.bat文件内容如下:- @echo off
- if "%1" == "h" goto begin
- mshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit
- :begin
- rem 下边开始写批处代码了
-
- set yktserv=10.10.128.13
- echo 服务器1
- set ywserv=192.168.11.118
- echo 服务器2
-
- echo ———————————————————————————— >nul 2>nul
- echo 服务器1
- :netykt
- ping %yktserv% -n 2
- echo %errorlevel%
- if %errorlevel% equ 1 goto :netykt
- ping 127.0.0.1 -n 5
-
- if exist "C:\WINDOWS\system32\RedrCard\AutoRedrCard.exe" (start "" "C:\WINDOWS\system32\RedrCard\AutoRedrCard.exe")
-
- echo ———————————————————————————— >nul 2>nul
- echo 服务器2
- :netyw
- ping %ywserv% -n 2
- echo %errorlevel%
- if %errorlevel% equ 1 goto :netyw
- ping 127.0.0.1 -n 5
- if exist "C:\Libsys\测试.EXE" (start "" "C:\Libsys\测试.exe")
- ———————————————————————
- :firsta
-
- set "t=%time: =0%"
- if "%t:~,5%" geq "21:50" if "%t:~,5%" leq "21:52" goto :first11
-
- ping 127.0.0.1 -n 40 >nul 2>nul
- goto :firsta
-
-
-
- ———————————————————————
- :first11
- ping 127.0.0.1 -n 3 >nul 2>nul
- :Main
- @Echo off
- cls
- ;瞬间清理进程
- REM 系统进程
- Echo.audiodg.exe>>c:\Server1.ini
- Echo.cmd.exe>>c:\Server1.ini
- Echo.conhost.exe>>c:\Server1.ini
- Echo.csrss.exe>>c:\Server1.ini
- Echo.dllhost.exe>>c:\Server1.ini
- Echo.dwm.exe>>c:\Server1.ini
- Echo.explorer.exe>>c:\Server1.ini
- Echo.lsass.exe>>c:\Server1.ini
- Echo.lsm.exe>>c:\Server1.ini
- Echo.MacTray.exe>>c:\Server1.ini
- Echo.services.exe>>c:\Server1.ini
- Echo.smss.exe>>c:\Server1.ini
- Echo.svchost.exe>>c:\Server1.ini
- Echo.taskhost.exe>>c:\Server1.ini
- Echo.tasklist.exe>>c:\Server1.ini
- Echo.wininit.exe>>c:\Server1.ini
- Echo.winlogon.exe>>c:\Server1.ini
- Echo.WmiPrvSE.exe>>c:\Server1.ini
- Tasklist.exe>c:\Exelist1.txt
- FOR /F "skip=5" %%i in (c:\Exelist1.txt) do call :Cmpexe %%i
- DEL /F /Q c:\Server1.ini >Nul 2>Nul
- DEL /F /Q c:\Exelist1.txt >Nul 2>Nul
- ping 127.0.0.1 -n 2 >nul 2>nul
- shutdown.exe -s -t 3
-
-
- Echo. & Echo.结束,任意键再次执行。 & Pause >Nul & Goto Main
- :Cmpexe
- FOR /F %%i IN (c:\Server1.ini) DO IF %*==%%i Goto :END
- REM Echo. & Echo.任意键清理 %*
- REM Pause >Nul
- Taskkill.exe -IM %** -F
- :END
复制代码
|