Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
7 years ago
Solved

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...
  • baxatob's avatar
    baxatob
    7 years ago

    Hi,

     

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

     

    TestedApps.yourBatFile.Run()