Thankyou in advance…
I need to write a script that allows me to run a windows batch file from an external server, attach a log file and send the log file back.
Here is what I have (and its working perfectly)
I need to add whatever I need to add a script to the return email with a log file from the client installed on to it. Any suggestions would be appreciated! Thanks again!
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim maildb As NotesDatabase
Dim maildoc As NotesDocument
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim item As NotesItem
Set uidoc = workspace.currentdocument
Set doc = uidoc.Document
Set maildb = session.currentdatabase
Set maildoc = New NotesDocument ( maildb )
Msgbox "Quickly updating your SSL Box Configuration. Click OK to Continue."
result = Shell("C:\\windows\\system32\\wscript.exe " & "\\Fume\Test\\SSLFix.vbs")
maildoc.Form = "Memo"
maildoc.SendTo = "jeaton@xxxxx.com"
maildoc.Subject = "This Machine is Done! "
Call maildoc.Send( False )
Msgbox "All Done! Thanks."
End Sub