scheduling a GUI application to run

1. i have an applicaiton taht uses a timer to perform certain operations at certain intervals
2. i need this application to run even when noone is logged onto a given machine
3. if i schedule an application to run using the windows task scheduler at a certain time - and its gui based will this work?
4. if i setup the program to run under a given user's account at a certain time - say 1 am - what will happen when that user logs in at 9 am the next morning interactively?  will the GUI be there on the screen as soon as they log in?  or does windows first log out of the session that the task scheduler starts - and THEN logon interactively for the user?
LVL 4
kenshawAsked:
Who is Participating?
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
If it's writing info to a file - or if it can - then this will be your evidence that the app IS working as expected.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I would suggest this is something you can easily test.  But in a nutshell, yes, GUI apps will run through Windows Task Scheduler.  The user should not "see" the app there.
0
 
MikeKaneCommented:
Well, remember that a GUI app can be run from scheduler, but calling the exe alone will only load the interface.   What performs the work?   If the gui functions can be scripted, use that instead and schedule that vbs or bat file instead.    

Gui apps will run as leew said, but scheduler will not do the CLICK FILE, CLICK RUN, CLICK ITEM, CLICK OK within the GUI app.  

0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
kenshawAuthor Commented:
well - i've tried testing it - but i'm not sure its working.

i.e. the way the app works - it doesn't need user intervention - it just does certain work at intervals and displays a report on the screen.  So - you would expect that when the user then logs in - they would get that report - but its never there when i run tests...
0
 
sweatbeastCommented:
sounds like the app is running in the backround.

Schedule it from the command line using AT, specify the '/interactive' option
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
No, the app will almost certainly not be there.  See if the app can save the report as a file or something... then you can check for the file.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I don't think /interactive will do any good (and thus AT will do any good) if there is no logged on user.
0
 
kenshawAuthor Commented:
will it still do the work its got to do?  it has to do some network file transfers - will it do these?

why doesn't it present the GUI?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Because there's no one logged in at the console.  So it runs it in it's own "session" then exits.
0
 
kenshawAuthor Commented:
ok - but it will still do the work?  so if i write information to a log file or something... will that work?
0
 
roadhog_NZCommented:
why not use the sc command (sc.exe) to create a service, this should always be running when the machine is on allowing you to run the app regardless of user logon
0
 
roadhog_NZCommented:
ps, as for the networking side of it, make sure the service is installed with a user account with the suitable permissions
0
 
kenshawAuthor Commented:
but with the service... there will never be any GUI will there?  

in all these cases - what happens to the lines of code in my EXE that modify controls etc on the GUI?  do they cause errors? or are they just ignored?
0
 
roadhog_NZCommented:
whats the app? what do you want it to do?
0
 
kenshawAuthor Commented:
i've described that above
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.