However, when I schedule my task via Task Scheduler (windows server 2008) the Word process hangs (as seen in Task Manager). I suspect Word might be trying to ask a user something.
I did set these, but when run from Task Scheduler, Word never becomes visible:
$Word->{'Visible'} = 1;
$Word->{DisplayAlerts} = 0;
Can anyone think what difference it makes running the script via command line vs. Task Scheduler?
In reply to Win32::OLE from Task Scheduler by alafarm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |