公司有台14年组装的PC,时常无故重启,所以编写了个然并卵的批处理来测试稳定性。
打开程序.bat
@echo off
title Start Software
color 2F :
"C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Photoshop.exe"
ping -n 127.0.0.1>%temp%\.tmp
"C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\Dreamweaver.exe"
ping -n 127.0.0.1>%temp%\.tmp
"C:\Program Files (x86)\Adobe\Adobe Flash CS5\Flash.exe"
goto
关闭程序.bat
@echo off
title Kill Software
color 2F :
taskkill /f /im Photoshop.exe
ping -n 127.0.0.1>%temp%\.tmp
taskkill /f /im Dreamweaver.exe
ping -n 127.0.0.1>%temp%\.tmp
taskkill /f /im Flash.exe
ping -n 127.0.0.1>%temp%\.tmp
goto
本文出自 “运维菜鸟.log” 博客,谢绝转载!