I have an FTP script running on a server to facilitate the transfer of files to another server. I built a procedure in IRP that starts the batch script on the server. But what I would like to do is setup another step in the procedure to check the folder after the batch script completes to look for any remaining files, and then send me an email that the file transfer failed.
I currently have that in the procedure but it's not working. I believe it's because of the wildcard in the "testFile" step:
impersonateUser
executeFile (executes the batch script on the server)
pauseProcedure
If testFile (%systemdrive%\folder containing files\*.HL7) exists
sendEmail (sends an email saying the transfer was incomplete because there is still data in the folder)
Else
sendEmail (sends an email saying the transfer completed successfully)
Any help with this would be greatly appreciated.