Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Rules have been updated! Here

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
in system my properties info computer

System Info in My Computer Properties
#4
FYI, the code originally posted here only works if the motherboard name does not have any spaces in it. So, for example, one of my machines has a Asus Sabertooth X58, but the product shows up as "Sabertooth". I've fixed it, so keep reading if you're interested.

The "tokens=3*" on the FOR /F statement will put the third parameter found in the target variable (%i in this case), but anything following that third parameter will be placed in the next variable (%j if the first is %i, as in this case). So with this motherboard, %i will contain Sabertooth and %j will contain X58. Note that if there is nothing after the third parameter, %j will be an empty string (""). So all I needed to do was to add %%j to the SET of BaseBoardProduct.

I also added an ECHO OFF to suppress output of the commands, a SETLOCAL command so that the environment variables being set are just local to the code, added some output, and suppressed the normal output from the REG ADD statements (but errors will still be shown). Here's the updated code:

PHP Code:
The contents of this section are hidden 
You have No permissions
[-] The following 3 users say Thank You to TanMan for this post:
  • Dave-UK, fnsfernando, MaskedUser
Reply


Messages In This Thread
RE: System Info in My Computer Properties - by TanMan - 01-19-2020, 02:17 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)