When opening a KB, it always opens with the objects that were left open from the last time it was closed.
How is it that this does not happen?
In my case I am opening the KB from a .bat:
@ECHO OFF
"C:\Program Files (x86)\GeneXus\GeneXus16 U2\genexus.exe" /install
start "Genexus 16 U2" "C:\Program Files(x86)\GeneXus\GeneXus16U2\genexus.exe" /NoLastKB /NoWorkspace
I tried adding the /NoWorkspace with no success.
The implementation of /NoRecentObjects was left to solve what you needed. It is from Genexus V17 Upgrade 8. Currently in preview to be released in Feb/2022.
More info: https://wiki.genexus.com/commwiki/wiki?6740,GeneXus+command+line+parameters
There is no flag for that. What you can do is delete (or rename) the workspace. The last opened objects are saved by KB/User in an XML that has the list.
If you go to the directory of your KB and there the user, you will find a .workspace file that contains that.
Example: c:\MyKB\MyUser\MyKB.workspace Renamed or deleted ese, when opening the KB the objects are not opened.
Suddenly it is something that will be implemented in the future, in this sense it would be good to know the reason: what is the use of not opening the last objects opened in that KB by that user?