我正在使用此链接从服务中提取csv
文件 现在使用 excel vba
Shell ("C:Program Files (x86)GoogleChromeApplicationchrome.exe -url https://xxxxxxx.service-now.com/sys_report_template.do?CSV&jvar_report_id=676dbfdadb2637489ec9de1a489xxxxx")
它将文件直接下载到用户下载,但我想知道有什么方法可以设置下载文件的名称,有点像另存为功能?
我认为你可以使用 CURL在这里下载:https://curl.haxx.se/windows/
这是示例:
Shell("c:curl.exe https://xxxxxxx.service-now.com/sys_report_template.do?CSV&jvar_report_id=676dbfdadb2637489ec9de1a489xxxxx -o output-name-xxxx.csv")
希望对您有所帮助。