Page 1 of 1 1
Topic Options
#48198 - 1999-09-22 03:50 PM Getdiskspace fails on some Win95 machines
Anonymous
Unregistered


Hello,
I am running the GETDISKSPACE registry function in a script to determine
free siskspace on the c: drive of about 700 Windows 95 desktop PCs on my
network. The script runs well except that on about half the machines it
returns a result of 0 free diskspace. These machines are a mix of Windows
95A, Windows 95B, and OSR2 machines. It fails on all three versions of Win 95 with no pattern that I can determine.
Any ideas?
Fred Pretorius
fpretorius@mintz.com

The following is the script text:

$logfile1="N:\ISLOG\ISPCinfo.log"
$diskspace=GetDiskSpace( "C:\" )
$gooddisk=200000 ;100 mb = 100000
$goodieversion="5"
$ieversion=GetFileVersion("c:\program files\internet explorer\iexplore.exe")
$roundieversion=SUBSTR ("$ieversion", 1, 1)
$goodwordversion="7"
$wordversion=GetFileVersion("c:\program files\microsoft
office\office\winword.exe")
$roundwordversion=SUBSTR ("$wordversion", 1, 1)
$goodexceldversion="7"
$excelversion=GetFileVersion("c:\program files\microsoft
office\office\excel.exe")
$roundexcelversion=SUBSTR ("$excelversion", 1, 1)

Open( 3 , "$logfile1" , 5 ) = 0
$y = WriteLine( 3 , "diskspace, " + $diskspace +"," + @userid +","+
@fullname + "," + @wksta + "," + @date + Chr(13) + Chr(10) )
Close(3)

If $diskspace <= $gooddisk
$var1="disk"
gosub takenote
endif

If $roundieversion <> $goodieversion
$var1="IEVersion"
gosub takenote
endif

If $roundwordversion > $goodwordversion
$var1="WordVersion"
gosub takenote
endif

If $roundexcelversion > $goodexcelversion
$var1="ExcelVersion"
gosub takenote
endif


goto end

:takenote
IF Open( 3 , "$logfile1" , 5 ) = 0
$x = WriteLine( 3 , "$var1=," + @userid +","+@fullname + "," +
@wksta +
"," + @date + Chr(13) + Chr(10) )
Close(3)

ENDIF
return

:end



Top
#48199 - 1999-09-27 12:55 AM Re: Getdiskspace fails on some Win95 machines
Anonymous
Unregistered


Hi Fred,
your problem is the Kix version... Use Kix ver. 3.60 and all problem disappear...
Was my problem too...

Bye.

------------------

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.05 seconds in which 0.024 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