Micro Focus QTP (UFT) Forums
Use systemutil.run with two plus 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: Use systemutil.run with two plus parameters (/Thread-Use-systemutil-run-with-two-plus-parameters)



Use systemutil.run with two plus parameters - mv8167 - 05-22-2012

I am using this:

Code:
systemutil.run (filename,[parameters],[path],[operation],[mode])

How do i send two parameters; TestName and strAttachment:
Code:
SystemUtil.Run "O:\QTP Tests\SendEmailMessage.vbs", strAttachment, TestName



RE: Use systemutil.run with two plus parameters - basanth27 - 05-23-2012

Create a batch file(.bat) and embed the vbs in it after parametrizing the required parameters in it.

Once done, search and read about a method Run under windows shell.

Clue:
Set objshell = Createobject(....)
objshell.run " " " " ""

Easier to learn and implement Smile


RE: Use systemutil.run with two plus parameters - mv8167 - 05-24-2012

Thx, I figured out my issues, finally.

thx for the great idea too.