需要将其插入到bat文件中
该脚本自动生成图像标签,但我需要将此命令放入 Windows bat 文件中。这段代码在cmd窗口中编写时工作正常。
FOR %i IN (*.JPG) DO ECHO ^<img src="%i" /^> >> index.html
感谢和问候
This script auto generates the image tag, but i need to put this command into a windows bat file. This piece of code works fine when written in cmd window.
FOR %i IN (*.JPG) DO ECHO ^<img src="%i" /^> >> index.html
Thanks and Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在批处理文件中,您需要使用 %%variable 格式而不是 %variable
试试这个:
MSDN 参考
In batch files you need to use %%variable format instead of %variable
Try this:
MSDN reference