I am doing a complete uninstall of Mcafee antivirus and a install of Symantec antivirus using the kix32 during login. I need to check the drive space of every computer that Symantec will be installed on to make sure that there is at least 100MB of hard drive space. I wrote this but when I change the value or the redirectoutput command from 1 to 0 it put a 1 in the hddsize.log file in front of the hard drive size number. Here is what I wrote. Also if there is a way to do this in memory instead of using a file please let me know.
redirectoutput ("c:\temp\hddsize.log") = 0 GetDiskSpace( "C:\" )
IF OPEN (1, "C:\TEMP\HDDSIZE.LOG")
$SPACE = READLINE(1)
IF $SPACE > 102400
messagebox ('Your Workstation does not have enough hard drive space to install Symantec.)
Please Contact Network Services to resolve this issue.','!! Insufficiant Hard Drive Space Detected !!',4144)
|