Jump to content

Recommended Posts

Posted

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?

 

  • Moderators
Posted

@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!

Posted
  On 2/8/2019 at 1:53 PM, 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.

Expand  

Sorry, i cant delete this topic....

  • Moderators
Posted

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:

  Reveal hidden contents

 

Posted
  On 2/8/2019 at 2: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

 

Expand  

thjank you! great!

I still need to get a hang on this.

'SELECT * FROM Win32_VideoController'

I will work on it

Posted
  On 2/11/2019 at 9:28 AM, nitron said:

I still need to get a hang on this.

'SELECT * FROM Win32_VideoController'

I will work on it

Expand  

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

 

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
×
×
  • Create New...