Well, you can use cscript and
WMI to retrieve system/OS/process info by running a vbscript in a console and redirecting the output to .txt, then parse the results from the .txt.
Disclaimer: This may or may not work on Win9x systems. I know there is at least some WMI capabilities on 98+, but I don't know the procedures for W9x. In the alias below, the console window is not hidden, but minimized, for this reason. (Minimized =
7, Normal =
1, and Hidden =
0)
For example, to get video card info, one of the items OP mentioned.
Note - You'd more than likely want to remove some of the "wscript.echo *" lines below. :[/b])
alias videoinfo {
var %t = $ticks
.comopen %t wscript.shell
if !$comerr { .comclose %t $com(%t,run,3,bstr,command /c cscript //nologo video.vbs > stats.txt,uint,[color:red]7[/color],bool,true) }
.play -se stats.txt 0
.remove stats.txt
}
And here is video.vbs
'Start of video.vbs
on error resume next
set obj = getobject("winmgmts:\\.\root\cimv2")
set items = obj.execquery("select * from win32_videocontroller",,48)
for each obj in items
wscript.echo "acceleratorcapabilities: " & obj.acceleratorcapabilities
wscript.echo "adaptercompatibility: " & obj.adaptercompatibility
wscript.echo "adapterdactype: " & obj.adapterdactype
wscript.echo "adapterram: " & obj.adapterram
wscript.echo "availability: " & obj.availability
wscript.echo "capabilitydescriptions: " & obj.capabilitydescriptions
wscript.echo "caption: " & obj.caption
wscript.echo "colortableentries: " & obj.colortableentries
wscript.echo "configmanagererrorcode: " & obj.configmanagererrorcode
wscript.echo "configmanageruserconfig: " & obj.configmanageruserconfig
wscript.echo "creationclassname: " & obj.creationclassname
wscript.echo "currentbitsperpixel: " & obj.currentbitsperpixel
wscript.echo "currenthorizontalresolution: " & obj.currenthorizontalresolution
wscript.echo "currentnumberofcolors: " & obj.currentnumberofcolors
wscript.echo "currentnumberofcolumns: " & obj.currentnumberofcolumns
wscript.echo "currentnumberofrows: " & obj.currentnumberofrows
wscript.echo "currentrefreshrate: " & obj.currentrefreshrate
wscript.echo "currentscanmode: " & obj.currentscanmode
wscript.echo "currentverticalresolution: " & obj.currentverticalresolution
wscript.echo "description: " & obj.description
wscript.echo "deviceid: " & obj.deviceid
wscript.echo "devicespecificpens: " & obj.devicespecificpens
wscript.echo "dithertype: " & obj.dithertype
wscript.echo "driverdate: " & obj.driverdate
wscript.echo "driverversion: " & obj.driverversion
wscript.echo "errorcleared: " & obj.errorcleared
wscript.echo "errordescription: " & obj.errordescription
wscript.echo "icmintent: " & obj.icmintent
wscript.echo "icmmethod: " & obj.icmmethod
wscript.echo "inffilename: " & obj.inffilename
wscript.echo "infsection: " & obj.infsection
wscript.echo "installdate: " & obj.installdate
wscript.echo "installeddisplaydrivers: " & obj.installeddisplaydrivers
wscript.echo "lasterrorcode: " & obj.lasterrorcode
wscript.echo "maxmemorysupported: " & obj.maxmemorysupported
wscript.echo "maxnumbercontrolled: " & obj.maxnumbercontrolled
wscript.echo "maxrefreshrate: " & obj.maxrefreshrate
wscript.echo "minrefreshrate: " & obj.minrefreshrate
wscript.echo "monochrome: " & obj.monochrome
wscript.echo "name: " & obj.name
wscript.echo "numberofcolorplanes: " & obj.numberofcolorplanes
wscript.echo "numberofvideopages: " & obj.numberofvideopages
wscript.echo "pnpdeviceid: " & obj.pnpdeviceid
wscript.echo "powermanagementcapabilities: " & obj.powermanagementcapabilities
wscript.echo "powermanagementsupported: " & obj.powermanagementsupported
wscript.echo "protocolsupported: " & obj.protocolsupported
wscript.echo "reservedsystempaletteentries: " & obj.reservedsystempaletteentries
wscript.echo "specificationversion: " & obj.specificationversion
wscript.echo "status: " & obj.status
wscript.echo "statusinfo: " & obj.statusinfo
wscript.echo "systemcreationclassname: " & obj.systemcreationclassname
wscript.echo "systemname: " & obj.systemname
wscript.echo "systempaletteentries: " & obj.systempaletteentries
wscript.echo "timeoflastreset: " & obj.timeoflastreset
wscript.echo "videoarchitecture: " & obj.videoarchitecture
wscript.echo "videomemorytype: " & obj.videomemorytype
wscript.echo "videomode: " & obj.videomode
wscript.echo "videomodedescription: " & obj.videomodedescription
wscript.echo "videoprocessor: " & obj.videoprocessor
next
'End of video.vbs