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\cscrip t.exe
Add Arguments:
C:\Locus\CheckMail.vbs
Start In:
C:\Locus
Conditions:
Wake computer to start task = True
Thanks,
Eric Dossey
CheckMail.vbs
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\cscrip
Add Arguments:
C:\Locus\CheckMail.vbs
Start In:
C:\Locus
Conditions:
Wake computer to start task = True
Thanks,
Eric Dossey
CheckMail.vbs
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Turning on Developer Options inside Outlook allows the script to run without any issue.
Thanks to Alan and Shaun for commenting on the issue.
Thanks to Alan and Shaun for commenting on the issue.
You're most welcome.
Glad you got it working.
Alan.
Glad you got it working.
Alan.
ASKER
But it still will not run through Windows Scheduler..