Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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, 2254 views)
Reply With Quote
 


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 10:21 PM.


Copyright © 1999-2023 Kinook Software, Inc.