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
what is object and child object.. explain ..if possible give some example for better understanding ..
How to run a test using quicktest professional (qtp)?
What is quick test pro?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
How to modify the text checkpoint?
How many types of recording modes in qtp? Which will be used when?
what r the main attributes of test automation?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
what is the difference btn risks & Therads in the Test plan documentation?
How to use the object spy in quicktest professional 8.0 version?
How many scripts did you have?
What is a checkpoint? How many check points are there in qtp?
Which environments are supported by hp qtp?
How QTP support all types of applications (platforms)?
What is the extension of the recovery scenario file in qtp?