单行陈述:%% i“目前未预期” [英] single line for statement: %%i 'unexpected at this time'

查看:50
本文介绍了单行陈述:%% i“目前未预期”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

for /r %%i in (*) do (echo %%i)

结果


%% i这一次是意外的

%%i was unexpected at this time

为什么?

推荐答案

您必须尝试从命令行,而不是批处理文件中。从命令行运行时,使用单个%而不是两个。

You must be trying to run the command from the command line and not from within a batch file. Use a single % instead of two when running from the command line.

for /r %i in (*) do (echo %i)

在命令行中输入HELP FOR并阅读第三段。

Type HELP FOR from the command line and read the 3rd paragraph.

这篇关于单行陈述:%% i“目前未预期”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆