Article ID: 135129
Article Last Modified on 10/27/2006
Command Name: MSTEST
Command Line: WBRUN20.EXE sms_ini.pcd
Automate the above and configure it as a System task.
' **********************************************************************
'
' This is a test for finding and removing the WolverineInfo
' error in the FailedHardwareChecks line in the SMS.INI file.
'
' **********************************************************************
DIM infile%, StringVar$, outfile%
infile = Freefile
outfile=Freefile
' **********************************************************************
' Changing Attributes of the SMS.INI file to be read, write, non-hidden.
' **********************************************************************
Attrib "C:\SMS.INI" as " -h"
' *************************************
' Rename files
' SMS.INI to SMS.OLD
' Opening SMS.INI as the output file
' *************************************
name "c:\sms.ini" as "C:\SMS.OLD"
' ***************************************
' Opening the SMS.OLD file in input and
' opening the SMS.INI out output
' ***************************************
open "C:\SMS.OLD" for input as #infile
open "C:\SMS.INI" for output as #2
' ************************************************************************
' Reading and printing the SMS.INI file into Memory, one line at a time.
' If the parameter left 7 bytes is not "FailedH", then write the string
' ************************************************************************
While not (EOF (infile))
LINE INPUT #infile, StringVar
IF (left$ (StringVar,7) <> "FailedH") Then
Print #2, StringVar
endif
WEND
' ***************************************
' Closing the SMS.INI file
' ***************************************
Close #infile
' ***************************************
' Changing Attributes of the SMS.INI file back to original state
' ***************************************
Attrib "C:\SMS.INI" as " +h"
END
Additional query words: prodsms wolverine
Keywords: kbnetwork KB135129