Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows XP » microsoft.public.windowsxp.basics
Thread: Windows command line loose focus when application is started

HTVi
TV Discussion Newsgroups

Windows command line loose focus when application is started
Richard Pineault 6/19/2007 1:57:07 PM
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.
Re: Windows command line loose focus when application is started
Ayush <"ayushmaan.j[aatt]gmail.com"> 6/20/2007 10:47:17 AM
[Richard Pineault] wrote-:
[Quoted Text]
> 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.
--
Setup Outlook Express to read MS Newsgroups :
http://www.microsoft.com/windows/ie/support/newsgroups/howto.mspx

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen