4m4d3u5
6 years agoContributor
Passing a command line parameter to a batch file
I have a tested app that is a batch file and I would like to pass a parameter to that batch file for it to use. How would I go about doing this? I am writing using Javascript.
- 6 years ago
You can use the WshShell object within TestComplete to execute a command line to run your batch file, much the same way as you would do from the command prompt in windows. You can then pass any parameters through in the same way.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/wshshell/index.html