Windows command line loose focus when application is started

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
we are working on windows XP embedded and I would like to have a main script
which control all the startup operations. That script will «echo» to the
console the step that is currently executing. Thus, I changed the registry
key in order to have the command line in full screen mode.

Basically, the main script is started by the os (by adding the script to the
«run» registry key). That script calls other scripts which create temps
folders, apply security and starts some background apps. When I start other
scripts from the main script, I use the "/min" switch in order to run those
scripts in the background.

However, if one of the script starts an application (.exe), my main script
(which runs maximized on the foreground ) loose focus and is minimized in the
taskbar.

Is there any way to run an application from a script without loosing focus
of the command line ?

Thanks for help.
 
[Richard Pineault] wrote-:
Hi,
we are working on windows XP embedded and I would like to have a main script
which control all the startup operations. That script will «echo» to the
console the step that is currently executing. Thus, I changed the registry
key in order to have the command line in full screen mode.

Basically, the main script is started by the os (by adding the script to the
«run» registry key). That script calls other scripts which create temps
folders, apply security and starts some background apps. When I start other
scripts from the main script, I use the "/min" switch in order to run those
scripts in the background.

However, if one of the script starts an application (.exe), my main script
(which runs maximized on the foreground ) loose focus and is minimized in the
taskbar.

Is there any way to run an application from a script without loosing focus
of the command line ?

I dont know if it is possible with Command prompt or not but you can use HTA and then
show HTML output on screen and even run applications without showing them by using
WSHell.Run with 0 parameter as WindowStyle. Post to :
microsoft.public.scripting.vbscript
OR
microsoft.public.inetexplorer.scripting

if you want help on HTA.


Good Luck, Ayush.
 
Back
Top