Results 1 to 4 of 4

Thread: batch file to create a file from outlook

  1. #1
    Junior Member
    Join Date
    Jul 2010

    batch file to create a file from outlook

    I am working in a reporting tool and all the reports are scheduled at a particular time. The problem is that some of the tables are loaded, before the report refreshes. Is there any way of writing a batch file to create a file when the table loads. The only alert is, I will get a mail in my poutlook when the tables are loaded and I want to trigger my report based on that. Here is my requirement.

    1) Create a batch file to extract a mail (based upon a Subject) from my inbox and create a text file (dummy File) in the windows server which I have access.
    2) The batch file should run from the server and is it possible to check my outlook mail every 5 minutes?
    3) Is there any code to do this?

    I can trigger my reporting based on the dummy file, but I am not sure how to create the file from my inbox and moving the file to a particular path in the server. Thanks.

  2. #2
    Elite Member TonyT's Avatar
    Join Date
    Jan 2000
    Fairfax, VA
    I don't believe external batch files can read Outlook messages or manipulate Outlook itself. But you can use message rules to run a script or batch file.

    You can create a message rule such as "when get message with the subject 'apples' run the batch file. But, afaik, outlook does not have available APIs to allow external programs or scripts to control its functions.
    No one has any right to force data on you
    and command you to believe it or else.
    If it is not true for you, it isn't true.


  3. #3
    Junior Member
    Join Date
    Jul 2010

    Thumbs up Thanks.

    Fantastic. Your solution gave me a different angle to my problem. I did the way you recommended and it works. Thanks.

  4. #4
    Junior Member
    Join Date
    Jul 2010
    unfortunately, the rule which i created is 'Client -only' rule , because i use rule 'Start an application'. I need to think of it, to change it to server based.

Similar Threads

  1. Hijjackthis log help Please
    By miami305 in forum Network Security
    Replies: 7
    Last Post: 09-02-09, 08:58 PM
  2. Windows updates failure
    By Uberwilhelm in forum Software Forum
    Replies: 1
    Last Post: 06-27-09, 01:34 PM
  3. PC Acting Weird
    By Lurch in forum Software Forum
    Replies: 23
    Last Post: 05-14-09, 06:13 PM
  4. Simple dos Batch Script
    By stdj in forum Programming Forum
    Replies: 0
    Last Post: 04-24-08, 08:56 PM
  5. Please new to dsl and already having problem
    By weedancer in forum General Broadband Forum
    Replies: 46
    Last Post: 03-09-07, 06:23 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts