Triggering batch file from Outlook

Status
Not open for further replies.
Outlook version
Outlook 2007
Email Account
Exchange Server
How can we trigger a batch file from within Microsoft Outlook ? We receive email notifications of when the database backups are completed between 2AM and 4AM at a shared drive. These emails are sent to our team's email group. As soon as I receive this email (my email id is part of the team's email group), I want outlook to start running a batch file to start the copy process. I won't be logged on to Outlook at this hour of the night, therefore, i need some automated way of outlook to trigger the execution of the batch file.

In which version of Outlook is it possible? I have Outlook 2007, but if required, I can ask my company to give me a different version (Outlook 2010 or 2013?)..

Also, is there a different way (other than using Outlook) to achieve this task?

Thanks,

newbieoutlookuser
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
while you can trigger a batch file using a rule or other trigger, you can't do it from outlook unless outlook is open. Triggering it from the server requires an event sink and permission to run software on the server.

How are you backing the db up? Can you add the copy routine to the backup routine?

I use this in a batch to backup SQL db then cleanup old db.

REM Run TSQL Script to backup databases

sqlcmd -S server_name -E -i "C:\SQLBackUp\scripts\backupDB.sql"

REM Run database backup cleanup script

C:\SQLBackUp\scripts\deleteBAK.vbs
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
P ThisOutlookSession not triggering for TaskItems Using Outlook 3
X E-mail event triggering Using Outlook 1
B ItemAdd event not functioning - not triggering. Outlook VBA and Custom Forms 2
F Send multiple batch tasks to single person Using Outlook 3
Diane Poremsky Batch Import Photos into Outlook Contacts New Slipstick.com Articles 0
Z Batch Change Folder Views in Outlook 2016 Using Outlook 1
J Hyperlinks to batch files with parameters Using Outlook 3
P Batch adding text to email subject lines in Outlook Using Outlook 24
M Moving mailboxes from Exchange 2003 to 2010 - how to calculate move request batch size? Exchange Server Administration 3
P How to batch print outlook emails and attachments? Using Outlook 3
D Extract email addresses from inbox in a batch and move them into "bcc" for a mass email campaign Using Outlook 1
A Batch change "file as" contacts in Outlook 2010 Using Outlook 2
A Batch change "file as" contacts in outlook 2010 Using Outlook 1
G Total emails per batch Using Outlook 5
A Batch Printing Email to PDF Using Outlook 3
M Deleting attachments does not reduce file size Using Outlook 0
P PST file is getting huge under POP 3 Using Outlook 3
I Saving attachments from multiple emails and updating file name Outlook VBA and Custom Forms 0
F Script for zip file attachment Outlook VBA and Custom Forms 1
M Export-Import .pst file problems Using Outlook 2
L Cannot open PST file for first session each day Using Outlook 6
L How to Import Exchange OST file into Outlook? Using Outlook 3
J Outlook 2010 Changing events in Outlook calendar via opening file, importing CSV Using Outlook 0
C Can't create Outlook data file Outlook Wishlist 0
S What's in a PST file? Using Outlook 1
S automate save the .xlxs file to share Network Using Outlook 1
L Outlook Office 365 client: won't remember my setting File, not to collapse ribbon Using Outlook 2
B Outlook 2010 Can not find a certain file in M/S Outlook 2010. Using Outlook 1
A Order of Recent Items in Attach File List Using Outlook 5
J How to open OST file in Outlook 2019 & 2016 Using Outlook 1
W error with the permission for the file Outlook VBA and Custom Forms 0
L What are the risks of opening an Outlook 2016 .pst file in Outlook 2010? Using Outlook 4
DoctorJellybean Preserve OST file location in new installation? Using Outlook 4
RBLampert Assigning a newly (re)created e-mail account to a specific .pst data file Using Outlook 2
A Populate Listbox from Txt File Outlook VBA and Custom Forms 0
M Same file "stuck" on top of file list in "Attach File" drop down Using Outlook 4
A Populate Textbox from Txt File Outlook VBA and Custom Forms 1
A Read and Write to Text File Outlook VBA and Custom Forms 1
geofferyh How to change the Attachment File Name? Outlook VBA and Custom Forms 1
S Moving .OST file location unsuccessful! Using Outlook 6
S auto-mapping mailboxes in outlook impacting an ost file? Exchange Server Administration 2
DariTrevino MIcrosoft Outlook PST file cannot repair Using Outlook 1
GregS Can't access archive file Using Outlook 5
P how to remove unwanted PST file default categories assigned to many calendar entries Using Outlook 7
B What is best IMAP .OST file to .PST file converter solutions? Using Outlook 1
R Copy Outlook Public Folders to a File Server Shared Folder Using Outlook 0
J what file contains contacts, tasks and appointments stored locally? Using Outlook 1
semnaitik Is it possible to recover content from a 0KB PST file? Using Outlook 3
R VBA | Chosing path to save file Outlook VBA and Custom Forms 1
P Outlook 2013 opens with FILE tab selected. Using Outlook 3
Similar threads


















































Top