|
#1
|
|||
|
|||
Schedule task for a build
I have created a schedule task for my build from
Tools->CreateScheduledTask.During the automated build some project macros would be changed. The scheduled task is set to stop automatically if running for a number of n hours (normally should terminate in aprox 1 hour). Next day when I check the results-scheduled task was executed but the macros are unchanged. I guess this is because the scheduled task was stopped(after build ended the task still remained as running)and therefore the changed macros were not saved. So the question is -how can I execute an automated build as scheduled task and after execution to be closed and all the changes saved? Even if I set the scheduled task not to be stopped after n hours-still the project remains open and the macros are not saved unless I would manually choose to save them with File->Save(and I want to avoid any manual intervention). Tks for any info |
#2
|
|||
|
|||
#3
|
|||
|
|||
Thanks a lot!
|
#4
|
|||
|
|||
Another problem appeared with the scheduled task-when the build fails the VB project remains open.Only if the build was succesful the project closes.
How can I make it to close always at the end of build? |
#5
|
|||
|
|||
Invoke the console app rather than the GUI app, or use /s without /f when calling the GUI app.
http://www.visualbuild.com/Manual/consoleapp.htm http://www.visualbuild.com/Manual/command_linegui.htm |
#6
|
|||
|
|||
Thanks for suggestions ,I use now /s without /f when calling the GUI app.
There is one more thing I do not understand-if I change for the scheduled task the user in 'Run As' with an account from the administrator group-the task is run in hidden mode,no interface is visible. When changin back to the user account currently logged on the box-it runs normally with interface. Any idea how can I run it normal mode for a different user account than the currently logged one? |
#7
|
|||
|
|||
By (Windows) design, a scheduled task run by a different account than the logged in user will not display on the logged in user's desktop.
|
|
|