How to run VBScript file using django in IIS

I want to execute vbscript file in project folder using django in IIS. It is working fine in django production server but it is not working in IIS server. I have used the following code to execute vbscript file

completed = subprocess.run(["cscript", "C:\\Automation\\Python\\Invoicepdfdemo\\pdfdemo\\media\\pdfs\\start.vbs"])

please advice how to call and execute vbs file in django in IIS

Back to Top