You are on page 1of 1

Function Service_PreInvokeMethod (MethodName As String, Inputs As PropertySet, O utputs As PropertySet) As Integer If MethodName = "RunBatch" Then Dim iFileNum As Integer

iFileNum = FreeFile() Open "c:\sample.txt" For Output As iFileNum Write #iFileNum, "Successfully Started." Write #iFileNum, "Date and Time is:" & now() Write #iFileNum, "Successfully Quitting." Close #iFileNum End If Service_PreInvokeMethod = CancelOperation End Function

You might also like