ECTSPM
(Fresh Scripter)
2003-12-02 04:14 PM
Windows 9x: @mhz

Since @mhz donīt works under Windows 9x, exists other way to get this information by script ?
Thanks !


NTDOCAdministrator
(KiX Master)
2003-12-02 08:59 PM
Re: Windows 9x: @mhz

Hello and Welcome to the board. For Windows 9x try looking for script or tools at MCAs site.

http://home.wanadoo.nl/scripting/


Kdyer
(KiX Supporter)
2003-12-02 10:13 PM
Re: Windows 9x: @mhz

You can d/l the WMI9X.EXE from Microsoft and run a WMI Query to get this.

Kent


ECTSPM
(Fresh Scripter)
2003-12-02 11:33 PM
Re: Windows 9x: @mhz

Thanks.
I find another way, but appears that I have a syntax problem...
I found a DOS program (CHKCPU.EXE) that gives me information about cpu and mhz under Windows 9x enviroment. So, all that I need is redirect the output to a file. I created a kix file, named cpu9x.kix, that contains this instruction:

SHELL '%COMSPEC /c "C:\CHKCPU.EXE/S > C:\TESTE.TXT"'

When I execute kix32 cpu9x.kix, nothing is happening. The txt file isnīt created, and I can get any errors....
Any idea about how to solve this problem ?



ShawnAdministrator
(KiX Supporter)
2003-12-02 11:40 PM
Re: Windows 9x: @mhz

hmmm, might have a syntax error there, try this:

SHELL '%COMSPEC% /C C:\CHKCPU.EXE /S >C:\TESTE.TXT'

btw - what does the /S switch do ?

-Shawn


ECTSPM
(Fresh Scripter)
2003-12-02 11:41 PM
Re: Windows 9x: @mhz

Excuse me....
Already found the syntax error:
Wrong: SHELL '%COMSPEC /c "C:\CHKCPU.EXE/S > C:\TESTE.TXT"'
Right: SHELL '%COMSPEC% /c C:\CHKCPU.EXE/S > C:\TESTE.TXT"'

Just an unnecessary " before C:\CHKCPU.EXE/S > C:\TESTE.TXT"'

Thansk anyway !


ECTSPM
(Fresh Scripter)
2003-12-02 11:44 PM
Re: Windows 9x: @mhz

Quote:



btw - what does the /S switch do ?

-Shawn





Short Display, CPU type and speed only.


Jack Lothian
(MM club member)
2003-12-02 11:45 PM
Re: Windows 9x: @mhz

FYI

The utility posted on MCA's site is highly recommended by many high quality advice sites on the web.


ShawnAdministrator
(KiX Supporter)
2003-12-03 12:01 AM
Re: Windows 9x: @mhz

Glad you found the problem. Next stop - read the value in the output file back into your script ... hmmmm