thomashospital
asked on
Running a Console VB app as a schedule task
I have a console VB application that will run as a scheduled task just fine when scheduled under my account, but fails under any other account. I tried a dedicated account with Domain Admin rights and it still fails? Can someone shed some light on what I'm missing.
Details: The program just converts some text files to word documents with some formatting of the text prior to converting to .DOC formats.... All in the same folder.
Thanks in advance,
Scott Thomas
Details: The program just converts some text files to word documents with some formatting of the text prior to converting to .DOC formats.... All in the same folder.
Thanks in advance,
Scott Thomas
ASKER
Daniel,
I logged in under the Domain account and it worked! What does that tell me? I can't leave the server logged on under that account.
Thanks for the help!!!!
I logged in under the Domain account and it worked! What does that tell me? I can't leave the server logged on under that account.
Thanks for the help!!!!
When you run it under Task Scheduler, does it fail to start? Or break once it is under way?
some information should be available, when looking at c:\windows\tasks , under Advanced | View Log
some information should be available, when looking at c:\windows\tasks , under Advanced | View Log
ASKER
The log only shows the task complete with an exit code of (e0434f4d)
OK, that means it did start ... but crashed.
Do you have access to the code to add some logging?
Otherwise ... is it hitting mapped drives? those are sometimes quite problematic.
does it pop any message boxes? In a run-silent scenario those can cause problems ... though they usually result in the thing just waiting, not exiting w/ a funny code.
Do you have access to the code to add some logging?
Otherwise ... is it hitting mapped drives? those are sometimes quite problematic.
does it pop any message boxes? In a run-silent scenario those can cause problems ... though they usually result in the thing just waiting, not exiting w/ a funny code.
ASKER
I have the code and can add any logging you would suggest. Just let me know what you have in mind.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You'll probably need to add some logging to figure out where it's breaking ...
possibilities include: