批处理命令里面两个感叹号,中间放一个变量代表什么意思。
例如如下代码setcount=1for/f"tokens=2delims=Z"%%iin(E:\PHP_CODE\yuming.txt)do(if!count!EQU1s...
例如如下代码
set count=1
for /f "tokens=2 delims=Z" %%i in (E:\PHP_CODE\yuming.txt) do (
if !count! EQU 1 set Loca=%%i
if !count! EQU 2 set Ext=%%i
if !count! EQU 3 set Name=%%i
set /a count+=1
) 展开
set count=1
for /f "tokens=2 delims=Z" %%i in (E:\PHP_CODE\yuming.txt) do (
if !count! EQU 1 set Loca=%%i
if !count! EQU 2 set Ext=%%i
if !count! EQU 3 set Name=%%i
set /a count+=1
) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询