
0
Completed
Is it possible to schedule a Geobank macro?
E.g if it was desired to run a weekly import at 7am every Monday.
Answer

+1
PINNED
You can schedule a recurring task in Windows Task Scheduler and call Geobank with command line arguments.
Geobank 105 -X -S "SubParam1=Value1;SubParam2=Value2"
105 tells Geobank to launch object 105 at start-up and immediately execute
-S tells Geobank to take substitution parameters.
-X tells Geobank to close after the task is finished.
The sub params part is only available in newer versions (starting at 9.0.4 I think).

If you have more than one config DB, tell GB to login automatically (Options>Security>'Automatically login at startup'), then login to your desired DB before closing (it will remember the last one used).
If you have more than one 'data' DB, it will ask you to assign the DB when you assign the object to your task list.
If you have more than one 'data' DB, it will ask you to assign the DB when you assign the object to your task list.

Hi. Can you clarify the correct Task Scheduler settings to get a scheduled task to run when the user isn't logged in? I can get my scheduled task to run fine when set to 'only run if user is logged in' but it won't run when it is set to 'run whether or not user is logged in'.
It shows as 'running' but doesn't finish and doesn't actually do anything.
Do I need to make some further tweaks to the scheduled task settings to make it run even if not logged in? I have used a fully qualified path to files rather than any 'mapped drive' settings.
Also tried running it as 'nt_authority\system' rather than under my own login.
thanks
It shows as 'running' but doesn't finish and doesn't actually do anything.
Do I need to make some further tweaks to the scheduled task settings to make it run even if not logged in? I have used a fully qualified path to files rather than any 'mapped drive' settings.
Also tried running it as 'nt_authority\system' rather than under my own login.
thanks

Hello,
We are testing your case. We will post when we got the solution.
We are testing your case. We will post when we got the solution.

Hi There;
Tasks run in this manner, must be executed from a profile (you cannot execute automated tasks in this manner from the config), therefore you must be logged in as someone, even if it is as the administrator, and that task must be assigned to that login, in order for GB to recognise from which profile to run the task.
Thus, if you would like to execute a task in this manner, I suggest that you set up an 'admin' or other such profile for such automatic tasks, which you will need to assign to the 'nt_authority\system' login if that is the user you want to be running the task (I suspect this is why your task wouldn't run when you tried it this way?). Then, when you set up the task in scheduler, you can specify which user account to run the task, and input the login details there.
It should work if you try it that way, let me know if you encounter further issues.
Tasks run in this manner, must be executed from a profile (you cannot execute automated tasks in this manner from the config), therefore you must be logged in as someone, even if it is as the administrator, and that task must be assigned to that login, in order for GB to recognise from which profile to run the task.
Thus, if you would like to execute a task in this manner, I suggest that you set up an 'admin' or other such profile for such automatic tasks, which you will need to assign to the 'nt_authority\system' login if that is the user you want to be running the task (I suspect this is why your task wouldn't run when you tried it this way?). Then, when you set up the task in scheduler, you can specify which user account to run the task, and input the login details there.
It should work if you try it that way, let me know if you encounter further issues.

thanks for the info. We have got the scheduled task running OK, once we sorted out the user/task/profile stuff properly.
I noticed that the -X flag didn't seem to make geobank exit once the macro was finished though...any ideas?
I noticed that the -X flag didn't seem to make geobank exit once the macro was finished though...any ideas?

Hello,
-X param does work. But when a task is compete the geobank gives you a result message. If click OK or whatever the response was and finish the task it automatically closes the system. I have tested it with 9.0.15.58158
-X param does work. But when a task is compete the geobank gives you a result message. If click OK or whatever the response was and finish the task it automatically closes the system. I have tested it with 9.0.15.58158

Yes, if the task was to run a report or something, you would have to tell it to print then close the report, before GB would be able to close. If it is a query or something that you are running, embed it in a macro, then choose the option for the macro to execute immediately upon opening, otherwise GB will sit waiting for you to push start...then just make sure you don't have any messages popping up as part of the task.
Customer support service by UserEcho
You can schedule a recurring task in Windows Task Scheduler and call Geobank with command line arguments.
Geobank 105 -X -S "SubParam1=Value1;SubParam2=Value2"
105 tells Geobank to launch object 105 at start-up and immediately execute
-S tells Geobank to take substitution parameters.
-X tells Geobank to close after the task is finished.
The sub params part is only available in newer versions (starting at 9.0.4 I think).