Page 1 of 1 1
Topic Options
#158452 - 2006-03-07 08:49 PM Method of delaying program startup at reboot
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
I need to run a program about 45 seconds after a computer logs in to Windows XP. I was thinking of using KiXtart as the method of running this delayed program. Anyone have suggestions?

Path:
c:\program files\wonderware\intouch\

Program to run:
almprt.exe -q myquery.alc

Thanks!
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#158453 - 2006-03-07 08:56 PM Re: Method of delaying program startup at reboot
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Why not just put a sleep 45 right before the script starts the program?
If the scripts do not run synchronized nobody will notice the delay.

[edit]
And if they do run synchronized you could launch an other script with the sleep 45 and the line to start the app by using the Run command. The first script keeps on running until it is done and the second waits 45sec before starting the app.
[/edit]


Edited by Mart (2006-03-07 09:02 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#158454 - 2006-03-07 09:06 PM Re: Method of delaying program startup at reboot
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
I need to have KiXtart run locally on this computer. To run this in the startup folder would I need to create a batch file that executes KiXtart.exe locally?
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#158455 - 2006-03-07 09:20 PM Re: Method of delaying program startup at reboot
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
a .lnk should suffice and could run from either server or local box.
Top
#158456 - 2006-03-08 01:28 AM Re: Method of delaying program startup at reboot
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Is there a way to have an onscreen count-down with KiXtart? Also, would I use the "RUN" command to launch a .lnk file from within KiXtart?
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#158457 - 2006-03-08 01:53 AM Re: Method of delaying program startup at reboot
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
dozens of methods to launch files. Many locations / methods from within the registry, startup groups, batch files, schedules.

I suppose it depends some on when / how you want it to run and how you want it to look, does a user need to be logged on or not etc..

There is RUN / SHELL / COM SHELL method too

Just look at some system that has been heavily infected with Spyware and you'll see how tricky some of them are at launching there junk.

Can't say as there is only one specific best method as some of it is user preference.

Top
#158458 - 2006-03-08 03:21 AM Re: Method of delaying program startup at reboot
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
as for the countdown, how do you want to present it? Could just put in the console, or you could make a really cool KF to display it, and then do a
Code:

For $ = 45 to 0 step -1
? $
Sleep 1
Next

_________________________
Today is the tomorrow you worried about yesterday.

Top
#158459 - 2006-03-08 04:14 AM Re: Method of delaying program startup at reboot
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Also some more ideas here for LONG count down


running a script every 45 days
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=130347
 

Top
#158460 - 2006-03-08 09:37 AM Re: Method of delaying program startup at reboot
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
A very simple but effective countdown:
Code:
Break ON

$=SetOption("HideCursor","ON")
For $iCounter=45 to 0 Step -1
Select
Case $iCounter<6 Color r+/n
Case $iCounter<10 Color y+/n
Case "Default" Color g+/n
EndSelect
CLS Big At(15,30+5*($iCounter<10)) $iCounter Small
Sleep 1
Next
$=SetOption("HideCursor","OFF")
Cls

Exit 0


Top
#158461 - 2006-03-08 07:47 PM Re: Method of delaying program startup at reboot
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Great recommendations. Thanks for the sweet color count down Richard. Going to try this with my EXE.
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 323 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.059 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org