Jump to content

Task Scheduler - Launching .exe


Go to solution Solved by genius257,

Recommended Posts

So I am having problems launching my script using task scheduler. I will admit I am new to task scheduler.

I found a lot of topics on this same kind of thing, but most of them had to do with Send () and WinWaitActive() being the cause. 

I tested with a script just using:

Msgbox(0,"","")

It works fine if I have "Run only when user is logged on". If I try "Run whether user is logged on or not." It will not run. (tested while logged on also) It will not pop up the message box.

image.png.c87f815391b1ae27249a158854574041.png

I am unsure of how to debug this problem I am assuming it has to do with some permissions as I am on a company computer. Not sure where to look for errors though. 

Any help is appreciated. 

Edited by SkysLastChance

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Link to comment
Share on other sites

  • Solution

Hi @SkysLastChance.

I seems to remember applications started via task scheduler does not allow GUI to work, including your message box.

Just for testing, your script could create a text file on the desktop, just to verify this claim :)

Link to comment
Share on other sites

  • 2 weeks later...

Thank you for the help on this everyone. The truth is that all of these helped me out. Then I ran into more problems. My main problem ended up being that the task scheduler did not have access to the Folders/SQL tables that my script was trying to run. It is working as expected now. 

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...