Jump to content

wmic PATH Win32_videocontroller GET adapterram


nitron
 Share

Recommended Posts

Hy All,

 

again I got a question.

I try to convert

wmic PATH Win32_videocontroller GET adapterram

 

i tried to to it like in this example but my knoledge is not good enough

   Local $oWMI = ObjGet("winmgmts:root\CIMV2")
   Local $oDisks = $oWMI.ExecQuery("select * from WIN32_DiskDrive")
 

So i tired 

   Local $oWMI = ObjGet("winmgmts:root\CIMV2")
   Local $oGMRam= $oWMI.ExecQuery("Win32_videocontroller")

   $Memory=$oGMRam.adapterram

but this does not work.

I like to understand what i need to do?

 

Link to comment
Share on other sites

  • Moderators

@nitron You have been around long enough you should be able to figure out that the Examples forum is not where you add a new General Help question. Please pay attention to where you are posting in the future.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

3 minutes ago, JLogan3o13 said:

@nitron You have been around long enough you should be able to figure out that the Examples forum is not where you add a new General Help question. Please pay attention to where you are posting in the future.

Sorry, i cant delete this topic....

Link to comment
Share on other sites

  • Moderators

nitron,

Do not worry, we have moved it for you.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Local $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2")
Local $colItems = $objWMIService.ExecQuery('SELECT * FROM Win32_VideoController')
If not IsObj($colItems) Then Exit MsgBox (0,"","Not an object")
For $sItem In $colItems
  MsgBox (0,"",$sItem.AdapterRAM)
Next

 

Link to comment
Share on other sites

On 8.2.2019 at 3:26 PM, Nine said:
Local $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2")
Local $colItems = $objWMIService.ExecQuery('SELECT * FROM Win32_VideoController')
If not IsObj($colItems) Then Exit MsgBox (0,"","Not an object")
For $sItem In $colItems
  MsgBox (0,"",$sItem.AdapterRAM)
Next

 

thjank you! great!

I still need to get a hang on this.

'SELECT * FROM Win32_VideoController'

I will work on it

Link to comment
Share on other sites

3 hours ago, nitron said:

I still need to get a hang on this.


'SELECT * FROM Win32_VideoController'

I will work on it

It is "WQL for WMI".  It is a very small subset of the SQL standards.  Google it to learn its limitations.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...