Thanks you all. I use now FindWindow to get handle of application and then SetWindowPos...it works fine. (And it's important use WinExec instead of Exec, because Exec doesn't wait for starting of next application and the handle cannot be simply obtained) Thanks once again and have a good time Martin