Или другой способ сделать это для Windows - это использовать RBtray
RBTray is a small Windows program that runs in the background and allows almost any window to be minimized to the system tray by:
Right-Clicking its minimize button
Shift-Right-Clicking on its title bar
Using the Windows-Alt-Down hotkey
Note that not all all of these methods will work for every window, so please use whichever one works for your needs.
Просто предположите, что вы пытаетесь переместить консольные окна в системный трей?.