A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Automatically Run Batch File?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 21st 08, 12:08 PM posted to microsoft.public.outlook.program_vba
G
external usenet poster
 
Posts: 25
Default Automatically Run Batch File?

I'm working on a solution that will allow the user to (somehow) click text in
an email and automatically open a report and paste data into the report (from
the email). I'm wondering if there's an elegant way to do this in Outlook.


Here's what I'm using: MS Access, Outlook 2003, Crystal Reports 8.5,
Winbatch, DOS batch file.

Here's how it works (right now): I automatically send an email
notification via Access (text format) to a recipient with the following text
(batch and order number):

\\SERVER\Runit.bat

[order number]

When the user selects the URL to run the batch file, it invokes a winbatch
script which, essentially, sends keystrokes in the Windows environment to
copy the [order number] in the email, open Crystal Report, re-generate report
and paste [order number]. Not elegant and doesn't always work.

The real issue that I'm having is copying the [order number] ... when I
invoke the batch file the active window changes. If I could copy the order
number from the email to the clipboard when I select the URL (for example),
that would eliminate a lot of issues.

Does anyone have any suggestions for a better solution?

Thanks for your help!

Gary


Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is an .ics file updated automatically or manually? FLBuckeye Outlook - Calandaring 8 April 24th 08 01:55 AM
How to run a batch file wen you close Outlook gamul Outlook - General Queries 7 April 21st 08 04:10 PM
Outlook Tiime Zone Update Using Batch File Anna_Stephanie Outlook - General Queries 2 March 9th 07 10:12 PM
How do I automatically file a sent e-mail carl Outlook - General Queries 5 August 3rd 06 01:54 PM
Batch file blocked Nananana Outlook - General Queries 2 March 12th 06 09:21 PM


All times are GMT +1. The time now is 08:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.