Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook xp Rule - need solution for 'fire and forget'

Status
Not open for further replies.

ssoulages

Programmer
Aug 1, 2002
28
US
I am creating a rule that checks messages when they arrive based on key subject words. Then 'start application' runs a process (DOS Batch file) that creates/captures a log file (net view > myfile.txt). Then some VBA runs that attaches myfile.txt to a new email and sends that out automatically.

Everything works except that the rule does not wait for the batch to complete before firing the VBA. As a result the myfile.txt that is sent is the one from the previous time the batch was run. The rule also ignores pauses in the batch file. Sending the requesting email twice gives me the data I want, but it is a workaround and I'd rather have a solution...

Thanks in advance!

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top