Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Task Scheduler Fails when Running VB Compile EXE

07 Jul 2010   #1

Win 7 64
Task Scheduler Fails when Running VB Compile EXE

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 System SpecsSystem Spec

08 Jul 2010   #2

Win 7 64

Hi Everyone,

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


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 System SpecsSystem Spec
07 Sep 2010   #3

Windows 7 Professional x64, Windows 2008 R2 x64

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 System SpecsSystem Spec

16 Sep 2011   #4

Windows 7 Ultimate x64
it worked!

Thank you so much, it worked for me and saved a lot of strain
My System SpecsSystem Spec
06 Nov 2012   #5

Windows 7 Professional x64

Thanks, it also worked for me!
My System SpecsSystem Spec

 Task Scheduler Fails when Running VB Compile EXE

Thread Tools

Similar help and support threads
Thread Forum
Using Task Scheduler fails to run RoboCopy.
I have set up some RoboCopy tasks that run fine when run from the desktop link, but being forgetful I thought I would try to run them automatically using Task Scheduler. I followed the instructions in the tutorial and all appeared to be fine. However the tasks did not run so I checked them in Task...
Backup and Restore
Task scheduler not running??????
My daughter has an HP laptop that she uses in nursing school. It started acting funny and I found a bunch of junk on the computer that she says she doesn't know where it came from. But me problem is that automatic updates has stopped working along with the disk defag. When I try to run the...
General Discussion
Task Scheduler not Running Tasks
I created two tasks (Utorrent and Flashget) to run at 12:15 am every night but the tasks refuse to startup. I usually hibernate my computer at night so i have the two tasks "wake computer up to run this task" (the computer does wake itself up) The only way i can get it to run is if i manually run...
General Discussion
Task Scheduler not running
I can't install anything on my computer or run disk defragger because I keep getting error messages. Here is one: "Disk Deragmenter cannot start because the task scheduler service is not running. Start the task scheduler service and try again. I tried to mess around with the task scheduler...
General Discussion
Task Scheduler not running??
Hello- Anyone getting this message or had it and corrected it? see attachment. I''ve been on Google for a loong time and not really finding a fix. HP system 3 weeks old and this seems to be a problem for a ton of people. I check the services and its running and grayed out so I can't touch...
Performance & Maintenance
task scheduler not running missed task
When i set task scheduler to run a program it works. But if the pc is not on at the time it will not run unless task scheduler is opened. It is set to run as soon as poss after scheduled time and task scheduler itself starts and runs properly
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:49.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App