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 many tabs are available in debug viewer pane?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
How you are developing the script? Using record and play back or manual?
How to analyzing the checpoint results?
What r the different filters in defect in quality center
How can we conduct U-I Testing by using QTP??????
how to convert 100 into hundred repees only and viceversa
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
Explain calling sub procedure.
How do you capture tooltip using QTP?
if our qtp vb Script may be Currepted then What we want do?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?