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
How to capture a window in QTP?
How qtp identifies objects?
What is the limitation to XML Checkpoints?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
What are the features of quick test pro(qtp)?
How many types of actions are there in quicktest professional (qtp)?
Which environments are supported by hp qtp?
Whether qtp 9.0 supports Test director8.0
Where you are storing your script?
On what document base Descriptive programming is written if build is not yet ready ?