- 参数
%~p1, %~p2之类 for循环的变量,如下
for %%i in ("%test_path%") do (echo %%~pi)
- 时间输出0开始
https://serverfault.com/questions/147515/need-leading-zero-for-batch-script-using-time-variable
%time: =0%
利用变量值的替换;
endlocal && call set "exe_path=%exe_path%" ^
&& call set "lib_path=%lib_path%" ^
&& call set "mod_path=%mod_path%" ^
&& call set "pic_path=%pic_path%" ^
https://stackoverflow.com/questions/7105433/windows-batch-echo-without-new-line
:: 不换行
echo|set /p="> "
Windows批处理技巧
13万+

被折叠的 条评论
为什么被折叠?



