Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Checking file processing

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60468
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Checking file processing
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Checking file processing - 5/20/2008 7:03:59 AM   
  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
 
 
Post #: 1
 
 RE: Checking file processing - 5/20/2008 8:15:22 AM   
  dm_4ever


Posts: 2665
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
You may want to do a search for

FileSystemObject
GetFolder
Size
Maybe: Regular Expressions and Dictionary Object

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Kosh)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Checking file processing Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts