@echo 启动系统更新软件
@echo 开始初始化5037端口环境
@echo off
@netstat -aon|findstr "5037" > netstatfile.txt
@for /f "tokens=5 delims= " %%i in (netstatfile.txt) do @echo %%i >> pidfile.txt
@for /f "delims=" %%i in (pidfile.txt) do (@if not defined %%i set %%i=A & echo %%i>>pidoncefile.txt)
@for /f "tokens=1 delims= " %%i in (pidoncefile.txt) do (@if not %%i==0 @taskkill /f /t /pid %%i)
@del netstatfile.txt 
@del pidfile.txt
@del pidoncefile.txt
@del devfile
@echo 现在可以开始卸载驱动
@pause