Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9238339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:44:20+00:00 2026-06-18T07:44:20+00:00

I am currently making a batch file that merges both, the output from systeminfo,

  • 0

I am currently making a batch file that merges both, the output from systeminfo, and ipconfig:

@ECHO OFF
pause
systeminfo > "%computername% SystemInfo.txt"
ipconfig >> "%computername% SystemInfo.txt"
"%computername% systeminfo.txt"

The code runs fine and nicely, also independently from OS version and OS language as far as I can tell. My problem though, lies with the systeminfo dump. It lists all 100+ hotfixes that have ever been installed in the machine that is runs on, making the txt file barely legible:

<useful info>
[01]: File 1
[02]: File 1
[03]: File 1
[04]: File 1
....
[150]: file 1
etc...
<useful info>

There’s also another problem, namely that this batch file has to run on computers that either run Dutch windows or English windows, meaning that I can’t filter on words, because those hotfixes and the words will be different on every computer. Anybody have a nice sollution to this problem.

Note: I have seen it solved the other way around, leaving only the relevant info using findstr. But, because that depends on the language, it is not a viable option.

Edit: The hotfixes are named differently on different OS’es as well, meaning that I can’t filter on those. Example: on the XP SP3 I tested, most of the list will be compromised of hotfixes called “[##]file1” on vista however, you will see hex values in the list.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:44:21+00:00Added an answer on June 18, 2026 at 7:44 am

    EDIT

    My original answer did not work, but I have another idea that works as long as the number and order of each systeminfo header is consistent. I am relying on the fact that the Hotfix(s): is always the 31st header.

    @echo off
    setlocal enableDelayedExpansion
    >systemInfo.txt (
      set cnt=0
      for /f "delims=" %%A in ('systeminfo') do (
        set "ln=%%A"
        if "!ln:~0,1!"==" " (if !cnt! neq 31 echo !ln!) else (
          echo !ln!
          set /a cnt+=1
        )
      )
      ipconfig
    )
    

    If the number and/or order of the headers can change, then I don’t see how there can be a solution, other then to bite the bullet and look for the specific header text, accounting for all languages that you need to support.

    Original failed answer

    I don’t know how reliable this is. It works for me on my machine, but it would not surprise me if on some machines it strips things it shouldn’t.

    >systemInfo.txt (
      systeminfo|findstr /vxrc:"                           \[[0-9]*\]: [^ ]*"
      ipconfig
    )
    

    All my hotfixes begin with KB, followed by a string of numbers. If this is always true, then the above could be improved as:

    >systemInfo.txt (
      systeminfo|findstr /vxrc:"                           \[[0-9]*\]: KB[0-9]*"
      ipconfig
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently making a .properties file that needs to be loaded and transformed into
I am currently making a program that will send an email if the date
I'm currently making a filesystem using python-fuse and was looking up where file pointers
Im currently making usercontrol for umbraco that takes all Nodes indside a Node names
Currently making a user script. Issue I'm having is that when this one submit
I am currently making an application that uses a custom View Controller container. Multiple
I'm currently making a server dashboard that relies quite heavily on graphs and charts.
I am currently making an app that will control and make use of the
I am currently making a php script to graph a bunch of data from
I am currently making an app and website. Is there a system around that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.