Use of percent sign (%) as a CMD parameter is interpreted as a variable

后端 未结 2 1926
执笔经年
执笔经年 2021-01-13 16:26

I try to run a batch file with the following code:

wget.exe \"http://example.com/file0%24.html\"

The problem is, that CMD is interpretin

相关标签:
2条回答
  • 2021-01-13 17:13

    Use a double-percent sign to send a percent literal.

    wget.exe "http://example.com/file0%%24.html"
    
    0 讨论(0)
  • 2021-01-13 17:29

    You can escape % as %%

    wget.exe "http://example.com/file0%%24.html"

    http://support.microsoft.com/kb/75634

    0 讨论(0)
提交回复
热议问题