Micro Focus QTP (UFT) Forums
Launching .exe file with parameters - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Launching .exe file with parameters (/Thread-Launching-exe-file-with-parameters)



Launching .exe file with parameters - magnifyingone - 08-21-2014

Hi, guys!
I'm trying to launch .exe file but have some problems with parameters for it. In cmd I invoke application like ".exe /user=user". How can I launch it in QTP without cmd with parameter /user=user?


RE: Launching .exe file with parameters - dplank - 08-28-2014

Look at SystemUtil.Run to see how this can be done. Or failing that build the command line instruction as you normally would and use a WShell object's Exec method to invoke it.