首页 /
正文
医共体项目
@echo off
color 2f
@echo ======================================================
@echo 测试需要几秒到十几秒时间,请耐心等候......
@echo ======================================================
@echo 当前时间 %date%,%time%
@echo ======================================================
d:
echo 测试互联网是否正常连接
echo.
for /f "tokens=4 delims==" %%a in ('ping baidu.com ^| find /i "丢失"') do set AveTime=%%a
set AveTime=%AveTime:~1,1%
if %AveTime% == 0 echo 您好,您的网络很好!
if %AveTime% == 1 echo 您好,您的网络质量不是最好,可能会造成丢包!
if %AveTime% == 2 echo 您好,您的网络质量一般,可能会造成丢包!
if %AveTime% == 3 echo 您好,您的网络质量很不好,可能影响正常使用,请联系网络服务商!
if %AveTime% == 4 echo 您好,您的网络连接异常!请致电给你的网络服务商!
echo.
echo ======================================================
echo 测试医共体网络是否正常连接
echo google=======================>d:\a.txt
ping 188.166.10.108 >d:\a.txt
for /f %%i in ('find "来自 188.166.10.108" d:\a.txt') do set sf=%%i
if %sf%==来自 echo 医共体网络连接正常!
if %sf%==---------- echo 医共体网络连接异常!请致电给你的网络服务商!或检查你的路由是否正常工作 !
echo ======================================================
echo 测试医保网络是否正常连接
ping 10.139.97.194 >d:\a.txt
for /f %%i in ('find "来自 10.139.97.194" d:\a.txt') do set sf=%%i
if %sf%==来自 echo 医保网络连接正常!
if %sf%==---------- echo 医保网络连接异常!请致电给你的网络服务商!或检查你的路由是否正常工作 !
echo ======================================================
pause
河南省医保项目-收费端
@echo off
color f2
title 定点机构网络检测
:: xp不支持
::以管理员身份运行
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:begin
:: 启动tenlet
::sc config tlntsvr start= auto
::net start telnet
::net start tlntsvr
dism /Online /Enable-Feature /FeatureName:TelnetClient >nul
echo ********************* 医保专网检测 *********************
echo ********************************************************
for /f "tokens=2 delims=:" %%b in ('ipconfig^|find /i "ip"') do set fsip=%%b
echo 您现在使用的IP地址是:%fsip%
echo.
echo 开始检测医保网络. . .
echo.
echo.
ping -n 3 10.85.200.99>%temp%\1.ping
findstr "TTL" %temp%\1.ping>nul
if %errorlevel%==0 (echo √ 两定专网(10.85.200.99)访问正常) else (echo × 两定专网(10.85.200.99)访问不正常,请联系网络运营商调整!)
echo.
::his接口
ping -n 3 10.85.200.100>%temp%\1.ping
findstr "TTL" %temp%\1.ping>nul
if %errorlevel%==0 (echo √ his端医保专网(10.85.200.100)访问正常) else (echo × his端医保专网(10.85.200.100)访问不正常,请联系网络运营商调整!)
echo.
ping -n 3 10.85.96.36>%temp%\2.ping
findstr "TTL" %temp%\2.ping>nul
if %errorlevel%==0 (echo √ 医保电子凭证(10.85.96.36)访问正常) else (echo × 医保电子凭证(10.85.96.36)访问不正常,请联系网络运营商调整!)
echo.
ping -n 3 10.120.84.35>%temp%\2.ping
findstr "TTL" %temp%\2.ping>nul
if %errorlevel%==0 (echo √ 工伤医保(10.120.84.35)访问正常) else (echo × 工伤医保(10.120.84.35)访问不正常,请联系网络运营商调整!)
echo.
:: 端口
:: 社保卡网络
set ip=10.85.200.99
set port=80
start /min telnet %ip% %port%
::延迟多少秒
ping -n 7 128.0.0.1 > nul
tasklist|findstr /i "telnet.exe" >nul 2>nul
::echo %errorlevel%
if %errorlevel%==0 (echo √ 社保卡服务访问正常) else (echo × 社保卡服务访问不正常,请联系网络运营商调整!)
::关闭telnet弹窗
taskkill /F -IM "telnet.exe" >nul 2>nul
echo.
echo.
pause
清理C盘临时文件
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo. & pause
版权所属: Life
These are genuinely wonderful ideas in about blogging. You have touched some good things here. Any way keep up wrinting.
Hello There. I discovered your blog using msn. That is a really neatly written article. I will be sure to bookmark it and return to read extra of your useful info. Thank you for the post. I will certainly comeback.
反正都是草民,谁管都一样。
为什么我rss抓不到更新啊
Fine way of telling, and pleasant post to obtain data regarding my presentation subject, which i am going to deliver in college.
给我友联改好