Answer Posted / kishorem89
Dim Wshshell,fso,fo,l
''Open the CMD Prompt
set WshShell = CreateObject("WScript.Shell")
SystemUtil.run "cmd.exe"
wait(2)
'cmd="systeminfo |find"
'cmd1="Total Physical Memory:"
'WshShell.SendKeys cmd &" "&"""" &cmd1&""""
WshShell.SendKeys "systeminfo |find"&" "&""""&"Total
Physical Memory:"&""""&">D:\Sys.txt"
WshShell.SendKeys "~"
wait(3)
WshShell.SendKeys "exit"
WshShell.SendKeys "~"
Set
fso=createobject("scripting.filesystemobject")
Set
fo=fso.opentextfile("D:\Sys.txt")
While
fo.AtEndOfStream<>true
l=fo.readline
MsgBox l
wend
fo.close
set fo=nothing
set fso=nothing
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
The hybrid framework can be implemented for any application. Is it true?
UFT 12.02 which ALM version will support
what is Property......End Property loop? how to write sript for it in QTP
Why bpt?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
is there any addin for remedy user application
What is Distributed testing? How does UFT support it?
Why we load add-ins in qtp?
Hai anyone please "Explain about Framework in QTP?"
What are the different properties of an web object
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
How to run a test using quicktest professional?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
What is action split and the purpose of using this in qtp?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!