Dell 7.6 Computer Accessories User Manual


 
60 Sample Scripts and BIOS Settings
'*** Set the In parameter of the method to the URL of
BIOS header file
Set objInParam =
objMethod.inParameters.SpawnInstance_()
objInParam.sUrl = WScript.Arguments(1)
'*** Execute the method
Set ObjOutParam = objClass.ExecMethod_(strMethod,
objInParam)
'*** Let the user know whether the method returned
success or not
'*** Note: if return value is 0, it does not mean the
system's BIOS has
'*** been flashed, it only means that the flash method
was initiated
'*** successfully.
If objOutParam.ReturnValue = 0 Then
WScript.Echo "Method completed successfully."
else
WScript.Echo "Method failed."
End If
'*** Sub used to display the correct usage of the
script
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. You should run: " &
vbCRLF & _
"cscript.exe //nologo SampleFlash.vbs
<systemname> <URL of BIOS
header file>"
WScript.Echo strMessage
End Sub