"Pegasus (MVP)" wrote:
>
> "Tecknomage" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > At home and work I have a utility that launches from the Startup menu.
> >
> > At work there is no problem. At home, due to other utilities that
> > launch at bootup the one utility hangs and cause an error when I try
> > to close the minimized window in the Taskbar.
> >
> > Is there a way to delay the launch of an app from the Startup menu?
> >
> >
> > I have tried a CMD file that uses Sleep.exe then launches the app, but
> > since the app does not terminate the CMD Console does not close.
> >
> > Example:
> >
> > @echo off
> > cls
> >
> > sleep 30
> >
> > call "C:\Program Files\myapp\myapp.exe"
> >
> > exit
> >
> > ---------
> >
> > Works but Console remains open. Nothing after myapp is processed,
> > even a "pause" command.
> >
> > And, using "call" or not, same result.
> >
> >
> > --
> > ======== Tecknomage ========
> > Computer Systems Specialist
> > IT Technician
> > San Diego, CA
>
> You can modify your batch file like so. Note that both the "cls" and the
> "exit" commands are superfluous. I suggest you do without them in order to
> keep things nice and simple.
> @echo off
> sleep 30
> start /b "My Application" "C:\Program Files\myapp\myapp.exe"
>
>
>
The "My Applicattion," is that a general string-value or does it have to be
specific?
Thanks, by the way.
|