判断文件是否已经运行方法:
set zcy_name=悠悠网站数据.exe
echo 下面进行延时判断,为了循环运行时降低cpu!
ping 127.0.0.1 -n 3 >nul 2>nul
tasklist |find /i "%zcy_name%"
if %errorlevel%==0 (echo 运行) else (echo 没有运行)
exit
这个批处理在xp下面很正常的,但是到了2003系统,则无效,好像2003的tasklist |find 方法不能识别汉字,请问有什么方法处理(文件要是汉字名称)
[ Last edited by HAT on 2008-10-14 at 22:14 ]