目前%% A出乎意料 [英] %%A was unexpected at this time
本文介绍了目前%% A出乎意料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想压缩一个包含文件的文件夹。因此,为了做到这一点,我需要遍历整个文件列表并执行7za命令。 (7zip命令行版本)
I want to zip a folder containing files. So inorder to do that i need to loop through the entire file list and execute 7za command. (7zip command line version)
for /f %%A in ('"G:\Files Sample\zip\txt\*.t
xt"') do 7za -tzip "%%A.zip" "%%A"
但是,窗口显示此命令无效。
However windows says that this command is not valid.
错误消息是
%%A was unexpected at this time
我该如何克服这个问题?
How do i overcome this issue ?
推荐答案
%% A
用于批处理程序(* .bat)
%%A
is used when you use a batch program (*.bat)
尝试删除一个'%'
这篇关于目前%% A出乎意料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文