Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个批处理脚本,其中有一行
echo %* >> test.txt %PROCESS% %*
表达式 %* 表示和扩展为什么?
它只是扩展为传递给 shell/批处理文件的参数。例如
foo.bat:
echo %*
然后做
c:\> foo.bat abcefg hijkl 1 2 3 echo abcefg hijkl 1 2 3 abcefg hijkl 1 2 3 c:\>