Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-06-2012, 12:18 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Checking unread emails from Outlook

Attached project is checking unread emails in Outlook.It works ok when launched from GUI or from a batch file like this:
"C:\Program Files\VisBuildPro8\VisBuildPro.exe" /mta /b "C:\Program Files\VisBuildPro8\CheckUnreadEmails.bld"

But I need to have this project always running -therefore I created a scheduled task to run it at startup.
Problem is from scheduled task (is just launching the batch file) the project cannot be ran ,fails like this:

9/6/2012 6:42:34 PM: Building project step 'Check email'...
before creating outlook object
after creating outlook object
Error in Run Script (VBScript) script code at Line 20, Column 1 (Cannot complete the operation. You are not connected.)
9/6/2012 6:42:34 PM: Step 'Check email' failed


or simply remains frozen:

9/6/2012 7:13:13 PM: Building project step 'Check email'...
before creating outlook object
after creating outlook object

I tried not to use a scheduled task but to set automatic logon for Win and then i put the shortcut to batch file in StartUp -same issues appear like in ScheduledTasks.
Basically I cannot run this CheckUnreadEmails.bld continuosly on that machine.
Any idea why I have these issues and if there is any way to avoid them?
I have VBP 8.0 x64 installed on WinServer2008R2 64 bits
Attached Files
File Type: bld CheckUnreadEmails.bld (5.3 KB, 1310 views)
Reply With Quote
  #2  
Old 09-06-2012, 05:12 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Not sure, but you can reproduce the problem outside of Visual Build by putting the script code in a .vbs file and calling via cscript.exe in a scheduled task.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:12 PM.


Copyright © 1999-2023 Kinook Software, Inc.