🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

run a vbs file with python

User: "Mattia Pinna"
Altair Community Member
Updated by Mattia Pinna

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

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "fzidat"
    Altair Employee
    Updated by fzidat

    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