run a vbs file with python
Mattia Pinna
Altair Community Member
Hi,
i would like to run a file vbs with python in Flux shell script. The code os.system('path of the file'),subsprocess.call('path of the file') and subsprocess.call(['path of the file'], shell=True]) don't work. How can i do to solve this problem?
PS: if i run the file vbs clicking on it, it works with no problem.
Thankyou
0
Answers
-
Hello Mattia;
Can you try to indicate the "exe" you want to use in the command line, for instance:
os.system(‘C:/excel.exe xxxx.vbs’)
Regards
1