mnokoko 当前离线
上等兵
echo test>e:\tmp.log 2>&1if errorlevel 0 ( echo 成功创建 PAUSE) else ( echo 无法创建)pauseCOPY
评分人数
77七 当前离线
中校
@echo offfor /f "delims=" %%a in ('^(^>e:\tmp.log echo test^) 2^>^&1') do ( echo [%%a])pauseCOPY
TOP
aloha20200628 当前在线
少校
@echo off &(echo,test>"e:\tmp.log")2>"0.0"&set/p v=<"0.0"echo,%v%&del /q "0.0"&pause&exit/bCOPY
echo test>!driven!\xxxtmp.log 2>&1 && echo.盘符 !driven! PASS||echo.盘符 !driven! FAIL 写入失败)>>tmp.logCOPY