Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用以下代码运行批处理文件:
wget.exe "http://example.com/file0%24.html"
问题是,CMD 将 解释%2为变量(第二个命令行参数),因为它没有定义,所以它是空的。
%2
有解决方法吗?
使用双百分号发送百分比文字。
wget.exe "http://example.com/file0%%24.html"
您可以将 % 转义为 %%
http://support.microsoft.com/kb/75634