PC Review


Reply
Thread Tools Rate Thread

Delay Program Launch From Startup Menu

 
 
Tecknomage
Guest
Posts: n/a
 
      12th Feb 2009

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
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      12th Feb 2009

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


 
Reply With Quote
 
Tecknomage
Guest
Posts: n/a
 
      12th Feb 2009


"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.
 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      12th Feb 2009

"Tecknomage" <(E-Mail Removed)> wrote in message
news:6445C1A8-EF38-47CB-9520-(E-Mail Removed)...
>
>
> "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.


Why don't you give it a try to see if it works? Alternatively you could
start a Command Prompt and type start /? to see the meaning of this
parameter and find out about the many switches to the "start" command.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to delay invocation of the program in Startup group by N seconds? viki Windows XP General 2 15th Apr 2008 03:53 PM
Launch a program at startup =?Utf-8?B?Sm5BMDkxOTk4?= Windows XP General 2 7th Oct 2005 01:27 AM
How to Identify Program Causing Startup Delay =?Utf-8?B?SmFjayBNaWxscw==?= Windows XP Performance 8 24th Nov 2004 11:17 AM
Need to delay a startup program ... Windows XP General 2 19th Jul 2004 06:43 PM
Delay when launching browser from desktop/quick launch bar/start menu ed Windows XP Internet Explorer 1 4th Dec 2003 12:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:17 PM.