Executing a vbs file with arguments created by python

后端 未结 2 1289
故里飘歌
故里飘歌 2020-12-10 07:04

I would like to convert dozens of excel sheets to csv files at once. I have a working .vbs file which makes the conversion, and I would like to execute this .vbs file on the

2条回答
  •  时光取名叫无心
    2020-12-10 07:44

    Try running the script with cscript.exe:

    subprocess.call(['cscript.exe', 'C:\\Users\\user\\XlsToCsv.vbs', sheet, new_xls, new_csv])
    

提交回复
热议问题