use*_*632 4 command-line cmd wget command-line-arguments
我尝试使用以下代码运行批处理文件:
wget.exe "http://example.com/file0%24.html"
Run Code Online (Sandbox Code Playgroud)
问题在于,CMD将解释%2为变量(第二个命令行参数),并且由于未定义,因此为空。
有解决方法吗?
使用双百分号发送百分比文字。
wget.exe "http://example.com/file0%%24.html"
Run Code Online (Sandbox Code Playgroud)