Page 1 of 1 1
Topic Options
#109397 - 2003-12-02 04:14 PM Windows 9x: @mhz
ECTSPM Offline
Fresh Scripter

Registered: 2001-01-03
Posts: 10
Loc: São Paulo
Since @mhz don´t works under Windows 9x, exists other way to get this information by script ?
Thanks !

Top
#109398 - 2003-12-02 08:59 PM Re: Windows 9x: @mhz
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11558
Loc: CA
Hello and Welcome to the board. For Windows 9x try looking for script or tools at MCAs site.

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

Top
#109399 - 2003-12-02 10:13 PM Re: Windows 9x: @mhz
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
You can d/l the WMI9X.EXE from Microsoft and run a WMI Query to get this.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#109400 - 2003-12-02 11:33 PM Re: Windows 9x: @mhz
ECTSPM Offline
Fresh Scripter

Registered: 2001-01-03
Posts: 10
Loc: São Paulo
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 ?


Top
#109401 - 2003-12-02 11:40 PM Re: Windows 9x: @mhz
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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

Top
#109402 - 2003-12-02 11:41 PM Re: Windows 9x: @mhz
ECTSPM Offline
Fresh Scripter

Registered: 2001-01-03
Posts: 10
Loc: São Paulo
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 !

Top
#109403 - 2003-12-02 11:44 PM Re: Windows 9x: @mhz
ECTSPM Offline
Fresh Scripter

Registered: 2001-01-03
Posts: 10
Loc: São Paulo
Quote:



btw - what does the /S switch do ?

-Shawn





Short Display, CPU type and speed only.

Top
#109404 - 2003-12-02 11:45 PM Re: Windows 9x: @mhz
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
FYI

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

Top
#109405 - 2003-12-03 12:01 AM Re: Windows 9x: @mhz
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Glad you found the problem. Next stop - read the value in the output file back into your script ... hmmmm
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 189 anonymous users online.
Newest Members
Steff, phanhuyen, Jeroen_Ruijter, Tienn, tmvngocdung42
17545 Registered Users

Generated in 0.058 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org