write a program to display configuration of a local system
with the help of vb script.



write a program to display configuration of a local system with the help of vb script...

Answer / Mrinal Kaushick

Here's a simple VBScript example that displays some system information: n```vbnetnSet objWMIService = GetObject("winmgmts:.rootcimv2")nSet colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")nFor Each objItem in colItemsn WScript.Echo "Manufacturer:", objItem.Manufacturern WScript.Echo "Model:", objItem.Modeln WScript.Echo "Total Physical Memory:", objItem.TotalPhysicalMemorynNextn```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

Which keyword is used to declare a variable in the vbscript language?

1 Answers  


What is select case statement?

1 Answers  


what is visual basic?

2 Answers   Seion Infotech,


How many data types are supported in Vbscript?

3 Answers   Microsoft,


What's the difference between vbscript and vb.net?

1 Answers  


Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....

1 Answers  


Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?

1 Answers  


HI how can handle dynamic image through vb script example we have to create email id fill the edit box(these latters change wrong password) i am wating your answer

1 Answers  


Mention the rules for using option explicit statement?

1 Answers  


write a vbscript for finding the sum of the numbers from 1- 50

3 Answers  


Inorder to avoid Message box while writing script which alternative method can be used?

1 Answers  


How to create MSAcess table foriegn key

1 Answers  


Categories