run a vbs file with python

Mattia Pinna
Mattia Pinna Altair Community Member
edited May 2021 in Community Q&A

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

Tagged:

Answers

  • Farid zidat_20516
    Farid zidat_20516
    Altair Employee
    edited May 2021

    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