Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
8 years ago

How to write a script to call a bat file to run?

I would like to have a script (JavaScript) that runs a bat file. How would I go about doing this?

 

The bat file is located in C:\P4\testcomplete\branch_dev\WebIQ_Scripts\Clear_User_Settings and is called Clear_WebIQ_User_Settings.bat 

 

  • Hi,

     

    You can add your .bat to TestedApps and then call it:

     

    TestedApps.yourBatFile.Run()