Unfortunately there is no easy way for something external to the program to tell a Java program where to start. It would be possible (and not difficult) to write a Windows program that would use the Windows API to get a handle to the Gateway window and reposition it. It might even be possible to do it with a VBS script. There is also a utility called cmdow (see ) which should do the job.
?
Another possibility is to use the MinimiseMainWindow setting in IBC¡¯s config.ini so that the Gateway window is actually not visible (and then if you need it you can just click on the taskbar icon).
?
The real answer would be for IB to enhance Gateway to remember the last location it was started in, like TWS. I really can¡¯t imagine why they haven¡¯t already done this.