See below all the values ??for the second parameter of the WAITRUN() function:
0 - Hides the window and passes the activation to another window.
1 - Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as 9).
2 - Activates a window and displays it as an icon.
3 - Activates a window and displays it as a maximized window.
4 - Displays a window in its latest size and position. The window that is currently active remains active.
5 - Activates a window and shows it in its current size and location.
6 - Minimizes the specified window and activates the top-level window within the system list.
7 - Displays a window as an icon. The window that is currently active remains active.
8 - Displays a window, in its current state. The window that is currently active remains active.
9 - Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (the same as 1).
Hugs,
xComando := "copy /b temp.txt prn > NUL"
WaitRun( xCOMMAND, 7 )
Regards, Saludos.