Link to home
Start Free TrialLog in
Avatar of Eric Dossey
Eric Dossey

asked on

Windows Scheduler Issue

Hello everyone,

I have a VBS script that runs when I double click it just fine, but when I attempt to put it in the Windows scheduler to run at a given time every morning it does not run.  If I ad-hoc execute the script, Choose "Run" from the scheduler, it does not run.  But If I double click the vbs script in the directory it executes just perfectly.  

We receive a file via email every morning regarding Solar Kw and Kwh produced during the previous day.  This file is not an attachment, but is a URL pointing to the web location of the file.  The vbs script looks in Outlook email for any new email messages and then the body of each un-read email message for the "http://xxx.ccc.yyy" URL associated with the file.  It then opens connection to get the data file downloaded to my PC.  

I have attached the vb script and any help would be appreciated.  

Scheduler Settings:
General:    
    Name: Locus Data
    Account:  << My Account >> - Admin
    Run Whether user logged in or not = Yes
Triggers:
    Daily at 8:00 am
    Enabled = Yes
Actions:
     Start a program
     Program/Script:
            C:\Windows\System32\cscript.exe
      Add Arguments:
            C:\Locus\CheckMail.vbs
      Start In:
            C:\Locus
Conditions:
      Wake computer to start task = True


Thanks,
Eric Dossey
CheckMail.vbs
SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eric Dossey
Eric Dossey

ASKER

Thanks Shaun,

But it still will not run through Windows Scheduler..
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Turning on Developer Options inside Outlook allows the script to run without any issue.

Thanks to Alan and Shaun for commenting on the issue.
You're most welcome.

Glad you got it working.

Alan.