Re: Word does not open when run from Scheduler

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Peter Hewett (nospam_at_xtra.co.nz)
Date: 04/08/04


Date: Fri, 09 Apr 2004 03:03:47 +1200

Hi Brian Gabriel

Try logging into the account the script is using. Then start Word. For Word to
work properly when invoked as a COM object it must have been manually started at
least one in that particular account. It seems that the very first time Word is
started it initialises itself.

I built an application for a client that runs Word from a System Service, and
it took me forever to work out why it worked in the IDE but not when run from
the service component!!!

HTH + Cheers - Peter
 

bgab5867@hotmail.com (Brian Gabriel), said:

>I have a VBScript that tries to open a word document and run a macro.
>The script works fine when run interactively, however when the script
>is run as a scheduled task the script exits when I try:
>
>Set objWord = CreateObject("Word.Application")
>
>Any info would be great!
>
>Thanks,
>
>Brian
>bgab5867@hotmail.com



Relevant Pages

  • Protecting against dDOS bots (was: Newbie php problem)
    ... The form mail script posted that was used, ... requires the applicant to pass some kind of Turing test, ... Turing test if the account balance ever drops to zero. ... Log into the same account repeatedly, which consumes your credit ...
    (alt.php)
  • Re: Entourage account setup applescript not working
    ... I pasted the script at the end just in case. ... When comparing the account settings on 2 computers, ... This script assists a user with the setup of his Exchange account ... Customize the network and server properties below with information ...
    (microsoft.public.mac.office.entourage)
  • Re: Error 15401 using sp_grantlogin (not addressed by current KB articles)
    ... Restarting Windows 2000 resolved the problem for this particular account, ... confused when it sees a duplicate SID. ... > One way to get SQL Server to agree with the renamed NT ... > Preview (to ensure the script was created), ...
    (microsoft.public.sqlserver.security)
  • Re: Local account creation
    ... While this script works fine for my 2003 environment, ... use the script in a startup GPO so that there a generic local admin account ... Dim objNetwork, strComputer, strUser ...
    (microsoft.public.windows.server.scripting)
  • Re: How to change default of "Add to Address Book" command
    ... Script Editor, I did access the group using Google simply because my ... even though the Entourage source for my message clearly says ... Exchange account's Contacts address book. ... If you happen to have more than one Exchange account then ...
    (microsoft.public.mac.office.entourage)