Hi: I made a simple script, just to send an email with the log file attached to the mail. It works fine.
What I want to accomplish is that, if for some reason the macro failed to run the first sentences, the log reflects that..
ie:
1).-I runned this little test.bat file > the log file was generated.
2).- I renamed the test.bat file to teseeee.bat file > the log file was generated with the same info as the first one. Even when the script told them to execute test.bat.
I hope I made this understandable.
thanks
1/29/2008 11:08:37:328 - Run Program>cmd /c \\fppdtij02\sixs$\test\TEST.BAT
1/29/2008 11:08:37:328 - Waitwindowclosed>c:\WINDOWS\system32\cmd.exe
1/29/2008 11:08:39:328 - wait>2
1/29/2008 11:08:39:359 - Let>SENDMAIL_STATUS=1
1/29/2008 11:08:39:359 - Let>subject=TEST
1/29/2008 11:08:39:375 - Let>me=[email protected]
1/29/2008 11:08:39:375 - Let>myname=Macro FTP Download
1/29/2008 11:08:39:390 - Let>recipients=[email protected]
1/29/2008 11:08:39:390 - let>attach=c:\test.txt
1/29/2008 11:08:42:062 - SMTPSendMail>recipients,address.com,me,myname,subject,body,attach
1/29/2008 11:08:42:062 -
1/29/2008 11:08:42:078 - Finished Macro : TEST MACRO