我有一行在cmd提示符中工作的行,但我不能把它转换为在powershell中工作,我可以在powershell中无错误地运行它,但它不能像在cmd提示符中那样工作。
"C:\Program Files\Curl\curl-7.69.1-win64-mingw\bin\curl.exe" -F file=@C:\Documents\some.txt http://localhost/fileupload.php
我把它修好了,万一哪天有人遇到这个问题呢?
. ""C:\Program Files\Curl\curl-7.69.1-win64-mingw\bin\curl.exe"" -F ""file=@C:\Documents\some.txt http://localhost/fileupload.php""
我想你的file=@C:\Doc...需要加引号。 file=@"C:\Doc..."