Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to find RAM size by using QTP?

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


Please Help Members By Posting Answers For Below Questions

what is object and child object.. explain ..if possible give some example for better understanding ..

1934


How to run a test using quicktest professional (qtp)?

1056


What is quick test pro?

1004


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

1882


How to modify the text checkpoint?

1057


How many types of recording modes in qtp? Which will be used when?

925


what r the main attributes of test automation?

1979


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1984


what is the difference btn risks & Therads in the Test plan documentation?

2067


How to use the object spy in quicktest professional 8.0 version?

932


How many scripts did you have?

2118


What is a checkpoint? How many check points are there in qtp?

931


Which environments are supported by hp qtp?

942


How QTP support all types of applications (platforms)?

4466


What is the extension of the recovery scenario file in qtp?

941