Can anyone make a script to show the correct ram of a video card

Page 1 of 4 123 ... LastLast

  1. Posts : 32
    Windows 10
       #1

    Can anyone make a script to show the correct ram of a video card


    Hi, a friend of mine is making an app,
    but he can't manage to script the videocard ram if the video card has more than 4gb.
    E.g .: my son has the NVIDIA GeForce RTX 2070 SUPER of 8GB,
    his script then shows a RAM memory (1,048,576) bytes.

    DX_Diag does show 8GB of ram memory, but he can't do anything with it because that program saves it as a .txt file.


    Is there a way to read the video card 8GB ram with a script to show the correct RAM of a video card.

    As that NVidia Geforce DUAL-RTX 2070-8G has 8GB ram the routine maxes out at 4GB which is the limitation of the 32 bit API system, i have found a long winded way to get the ram figure out of the registry (two places in fact), but it not reliable as intel gfx gives a result of 0x00000040 (64 mb) so cannot really use that way.

    dxdiag will show the correct amounts BUT its txt or xml file is very awkward to parse to get the data if more than one adaptor is fitted as i cannot see any DeviceID markers so i can split the data into sections.

    So any Gfx adaptor that has more than 4Gib (Dedicated/Shared) will either result in a negative amount (rare now) or max 4GiB showing. as even 64bit windows has only 32bit API/WMIc operatives!
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @bundyal,

    Type this into a cmd prompt . . .
    Code:
    WMIC path Win32_VideoController get /?
    It lists the different parameters / switches. You can query [ output ] any of these by replacing /? with the parameter / switch. e.g. . .
    Code:
    WMIC path Win32_VideoController get AdapterRam
    I hope this helps!
      My Computer


  3. Posts : 32
    Windows 10
    Thread Starter
       #3

    Paul Black said:
    Hello @bundyal,

    Type this into a cmd prompt . . .
    Code:
    WMIC path Win32_VideoController get /?
    It lists the different parameters / switches. You can query [ output ] any of these by replacing /? with the parameter / switch. e.g. . .
    Code:
    WMIC path Win32_VideoController get AdapterRam
    I hope this helps!
    Paul if i do this,
    WMIC path Win32_VideoController get AdapterRam
    then i get this back
    AdapterRAM
    1073741824
    4293918720

    And i have an NVidia Geforce DUAL-RTX 2070 8GB Ram
      My Computer


  4. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #4

    Hello @bundyal,

    Have you tried Speccy? => Speccy [ FREE ]

    I hope this helps!
      My Computer


  5. Posts : 32
    Windows 10
    Thread Starter
       #5

    Paul Black said:
    Hello @bundyal,

    Have you tried Speccy? => Speccy [ FREE ]

    I hope this helps!
    I don't want to have a program.
    There are plenty that can read the pc hardware.
    I am looking for a script to use.
      My Computer


  6. Posts : 920
    Windows 10 Pro
       #6

    Unfortunately any 32bit based API/ Function will be limited in the amount of V-RAM it can detect. You could try to hook into DirectX to get the actual figure, try the MS Developer docs and or forums, maybe someone could help you there, or codeproject.com, csharpcorner.com or similar programmer sites.
      My Computer


  7. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #7

    Hello @bundyal,

    I must admit, I have spent the last 30 minutes or so trying to find an answer for you. Everything seems to point to roughly what I have already suggested. I did find this however which might be worth a read . . . Win32_VideoController class

    I hope this helps!
      My Computer


  8. Posts : 32
    Windows 10
    Thread Starter
       #8

    Paul Black said:
    Hello @bundyal,

    I must admit, I have spent the last 30 minutes or so trying to find an answer for you. Everything seems to point to roughly what I have already suggested. I did find this however which might be worth a read . . . Win32_VideoController class

    I hope this helps!
    Thank you Paul for your help, but i have make an Videoram.ps1 from the script on your link, but i only see 4GB Ram, and not 8GB.
      My Computer


  9. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #9

    @bundyal,

    bundyal said:
    Thank you Paul for your help, but i have make an Videoram.ps1 from the script on your link, but I only see 4GB Ram, and not 8GB.
    I will have another look tomorrow for you!

    Once you can get what you want output to the cmd prompt for example, you can create what you like to run it. e.g. .bat, ps1, .vbs etc.

    I hope this helps!
      My Computer


  10. Posts : 32
    Windows 10
    Thread Starter
       #10

    Paul Black said:
    @bundyal,


    I will have another look tomorrow for you!

    Once you can get what you want output to the cmd prompt for example, you can create what you like to run it. e.g. .bat, ps1, .vbs etc.

    I hope this helps!
    Ok thanks in advance Paul.
    You probably won't be able to test the script yourself beforehand (or if you have a video card over 4GB).
    I'll be home from work tomorrow at 5:00 PM to test it if you find anything.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:45.
Find Us




Windows 10 Forums