Is it possible to close outlook and save any draft messages using batch? I know it can be done using VBS (in fact I've already done it) but my boss has requested I do it in batch script.
I so far have:
@echo off
taskkill /IM outlook.exe
which obviously just kills the entire process but it doesn't save any drafts and will just wait with the prompt if there is one.
Unfortunately, batch cannot interact with GUIs, and Outlook has no command line option to save drafts.
However, since you have already written a working script in VBS, I recommend writing a batch wrapper script for it and giving that to your boss.