| |
Kosh
Posts: 1
Score: 0
Joined: 5/20/2008
Status: offline
|
Hello, I have a task where I need to apply VBScript to perform the following steps in a folder once each day. 1) Look at incoming files formated as below with today's date that are over 1K in size. (RECEIVED 2005-01-04 20.02.47) x1234csf.afp Note: There could be many .afp files (e.g., x1234csf.afp, x4578csf.afp, etc.) that arrived during the one day that are over 1K in size. 2) Search to see if there are two associated files like below for each .afp file greater than 1K in size. That is, each .afp file should have an associated .xxx and .yyy file pair. (RECEIVED 2005-01-04 20.02.57)(RECEIVED 2005-01-04 20.02.47) x1234csf.xxx (RECEIVED 2005-01-04 20.02.57)(RECEIVED 2005-01-04 20.02.47) x1234csf.yyy Note: This is all part of an automated process that, if successful, would have created two accompanying files with the above format. This idicates that the .afp file processed completely. 3) Send an email to yadayada.blahblah.com listing all of .afp files received today, greater than 1K in size for which both the associated .xxx and .yyy files were not created. These .afp files did not complete the automated processing. I don't know if this is important or not, but the VBScript needs to be applied in the MOM system that will inform me and others when an .afp file is received that is incorrectly formatted or if the automated processes has stopped working. Any suggestions, examples or links to similar scripts would be greatly appreciated. Please let me know if you have any questions. Thanks
|
|