Task Scheduler Fails when Running VB Compile EXE

xq1

New member
Local time
1:04 PM
Messages
2
Hi Everyone,

I am puzzled.

I created an exe with Visual Studio 2010 to automate the execution of a 2nd program.

This exe requires 2 command line arguments.

When I run this exe from a Short cut with the arguments defined everything works as desired.

However, when I make a Scheduled Task to run this exe, the 2nd program does not get run and I get various results in the Last Run Status - most of the time the result is 0x41306.

The task is set up as follows:

- run whether user is logged in or not
- run with highest privileges
- configure for Windows Vista / Windows Server 2008
although using Windows 7 / Windows Server 2008 R2 does not work either
- the schedule is set up and enabled
- the actions point to the exe create by VB
- the only conditions set is to wake computer to run
- settings are allow task to be run on demand / stop task if running more than
3 days / if task does not end when requested force it to stop

From the task history I get the following logs:

===============

Task Scheduler successfully completed task "\Netro-Wirecast-464-1100" , instance "{54a20687-ad3b-405a-a7a9-2c89cb43ce76}" , action "C:\Users\Sunday Services\Documents\Visual Studio 2010\Projects\WireCastLauncher\WireCastLauncher\bin\Release\WireCastLauncher.exe" with return code 3762504530.

Task Scheduler successfully finished "{54a20687-ad3b-405a-a7a9-2c89cb43ce76}" instance of the "\Netro-Wirecast-464-1100" task for user "HBCMP3RECORDER\Sunday Services".

===============

Can someone please shed some light as to what I am doing wrong so that I can get this working?

Thanx so much!
 

My Computer

OS
Win 7 64
Hi Everyone,

Nobody has any ideas????????????

Help.........................

This is so goofy and I really need to get this going.

Any ideas would be much appreciated as I am at my wits end.

Thanx so much!
 

My Computer

OS
Win 7 64
I just had this same issue - tho solved it by completing the Start in (optional) field within the Edit Action panel.

If your VB application has other required assets in the folder (XML, third-party executables) the scheduled task seems to fail unless you specify the folder.

Let me know if this solves the issue you're experiencing :)
 

My Computer

OS
Windows 7 Professional x64, Windows 2008 R2 x64
it worked!

Thank you so much, it worked for me and saved a lot of strain :)
 

My Computer

OS
Windows 7 Ultimate x64
Thanks, it also worked for me! :)
 

My Computer

Computer Manufacturer/Model Number
Fujitsu Siemens/Celsius W410
OS
Windows 7 Professional x64
CPU
Intel 3.10GHz, 4 Core
Memory
12Gb
Graphics Card(s)
NVIDIA Quadro 600
Back
Top