[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
|