+ Reply to Thread
Results 1 to 6 of 6

Extract "System Information" (dxdiag) using VBA

  1. #1
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Question Extract "System Information" (dxdiag) using VBA

    Hello guys,

    I've searched on the entire Internet about the possibility of extracting the system information regarding the Operating System , Processor and Memory . I've found a vba code that extracts data like System model, and BIOS version but i don't need them.


    The purpose of this code is to see how long a script will run some specific PC's and gather them in one email (i can do this), but i dont know how to extract them from the registry or anyplace.

    Thanks,
    Alex

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Extract "System Information" (dxdiag) using VBA

    Hi,

    You can do this using WMI.

    There's a page here :http://www.makeuseof.com/tag/see-pc-...el-vba-script/that describes it.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Extract "System Information" (dxdiag) using VBA

    No idea what you mean by "to see how long a script will run" but to run dxdiag passing the output to a file use...
    Please Login or Register  to view this content.
    You may have to change some directory paths depending on your local environment and be aware DXDIAG will be shelled but the code will continue immediately. It will take a few seconds for the output file to appear in the destination directory.

  4. #4
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Re: Extract "System Information" (dxdiag) using VBA

    sweep , i have tried that WMI method but the RAM memory cannot be correctly extracted.
    cytop, i've tried your idea but on some pc's the have only 1 partition and no access to partition C (the only one available)

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Extract "System Information" (dxdiag) using VBA

    The code is generic - I have no idea of your local environment so something that works on my machine was posted.

    I guess you need to find where the System directory (or whatever passes as the System directory on your machine) is - you can do that a couple of ways including using the GetSpecialFolder() API function. Plenty of examples all over the place.

    If you do get it to work, you can use '/x' as the switch rather than '/t' to create an XML output file. Might make it easier to extract he various bits of info you need.

  6. #6
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Re: Extract "System Information" (dxdiag) using VBA

    cytop, i will try to use the idea provided by sweep because our system directories varies on every PC. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 10-24-2013, 04:42 AM
  2. Trying to extract "Text" inbetween ":" and ","
    By Paulzr27 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2013, 05:48 AM
  3. Replies: 1
    Last Post: 10-22-2012, 09:38 AM
  4. [SOLVED] How to extract "large" and "small" amounts from vlookup
    By okjeep in forum Excel General
    Replies: 14
    Last Post: 05-02-2012, 06:28 AM
  5. Merging a "physical count" to a "system on-hand"
    By raharms in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2010, 04:43 AM
  6. Replies: 5
    Last Post: 09-19-2008, 04:02 PM
  7. Replies: 6
    Last Post: 11-01-2007, 11:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1