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 |
Which keyword is used to declare a variable in the vbscript language?
What is select case statement?
what is visual basic?
How many data types are supported in Vbscript?
What's the difference between vbscript and vb.net?
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....
Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?
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
Mention the rules for using option explicit statement?
write a vbscript for finding the sum of the numbers from 1- 50
Inorder to avoid Message box while writing script which alternative method can be used?
How to create MSAcess table foriegn key