Creating a script to gather PC information - to assist those asking for help

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Creating a script to gather PC information - to assist those asking for help

#166 Post by aGerman » 04 Apr 2022 10:49

A removal of WMIC won't affect the functionality of the script. So, there's no reason for an update. Whenever WMIC isn't available on a computer, you would find this information at the very beginning of the output. That's all. Besides of that, Win 8.1 is still supported and we've plenty of users still running even older versions.

Steffen

atfon
Posts: 178
Joined: 06 Oct 2017 07:33

Re: Creating a script to gather PC information - to assist those asking for help

#167 Post by atfon » 04 Apr 2022 11:42

aGerman wrote:
04 Apr 2022 10:49
A removal of WMIC won't affect the functionality of the script. So, there's no reason for an update...

Steffen
Aren't you using WMIC to determine the code page and assign that to the %ACP% variable? Aren't you then using that variable to determine things like the directory format?

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Creating a script to gather PC information - to assist those asking for help

#168 Post by aGerman » 04 Apr 2022 14:42

In most cases I try to read registry values using REG QUERY first, and WMIC is just an alternative. In rare cases I try WMIC first, but there's a plan B using another command.

Steffen

Post Reply