这个批处理命令,为啥输出不了 感叹号?
展开全部
因为你打开了变量延迟,如下试试对比下
@echo off
FOR /F "eol= delims=" %%i IN ("xxxx!") DO ECHO %%i
setlocal enabledelayedexpansion
FOR /F "eol= delims=" %%i IN ("xxxx!") DO ECHO %%i
endlocal
FOR /F "eol= delims=" %%i IN ("xxxx!") DO ECHO %%i
@echo off
FOR /F "eol= delims=" %%i IN ("xxxx!") DO ECHO %%i
setlocal enabledelayedexpansion
FOR /F "eol= delims=" %%i IN ("xxxx!") DO ECHO %%i
endlocal
FOR /F "eol= delims=" %%i IN ("xxxx!") DO ECHO %%i
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询