nnszuo 当前离线
上等兵
@echo off set "s=0&dir c:\" call echo %s% pause复制代码
amwfjhh 当前离线
六级士官
TOP
apang 当前离线
上将
@echo off (set "s=0&dir c:\") (echo %s%) > a.txt pause复制代码
@echo off (set "s=0&dir c:\") cmd /v /c "echo !s!>a.txt" pause复制代码
@echo off set "s=0&dir c:\" call :Next "%s%">a.txt pause & exit/b :Next echo,%~1复制代码