@echo off
::【隐藏批处理窗口】
cd /d "%~dp0"
>nul CWnd Find !
set hWnd=%errorlevel%
IF "%hWnd%"=="0" echo Error!&pause>nul&exit
CWnd Hide hWnd
IF "ERRORLEVEL"=="0" echo Error!&pause>nul
::***********【下面写要运行的代码】***************
::测试
ping 0.0.0.0 -n 10 >nul 2>nul
cd.>00.txt
exit