Page 1 of 1 1
Topic Options
#157538 - 2006-02-21 05:27 PM Schedule task n minutes after logon Script
Pascal Offline
Fresh Scripter

Registered: 2004-04-05
Posts: 28
Loc: Paris, France

Hi Guys,

Here is my question: I would like to perfom a task (stored on local computers %TEST%\test.cmd) 10 minutes after the logon script ran.
How can I do that?
Thanks in advance for your light

Top
#157539 - 2006-02-21 08:21 PM Re: Schedule task n minutes after logon Script
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
put a 10 minute timer in the script and push it to RunOnce.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157540 - 2006-02-21 09:32 PM Re: Schedule task n minutes after logon Script
Pascal Offline
Fresh Scripter

Registered: 2004-04-05
Posts: 28
Loc: Paris, France
I want to be more accurate about the request, in fact I would like to use the logon script to run a command file stored locally in the computer 10 minutes after the script has finished running.
How can I put a timer when the logon script is over?

Top
#157541 - 2006-02-21 09:38 PM Re: Schedule task n minutes after logon Script
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Don't put the timer into the logon script, put it into the RunOnce script.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157542 - 2006-02-21 09:39 PM Re: Schedule task n minutes after logon Script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
You can't really, but you could do a couple things. Launch a second instance of KiXtart with RUN at the end of your logon script, or if you're running asynchronous without showing your users any console then you could just sleep your logon script at the end for 10 minutes.
Top
#157543 - 2006-02-21 10:15 PM Re: Schedule task n minutes after logon Script
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
yep...

run 'wkix32.exe "%ProgramFiles%\AHCA\InventoryClient\Upload.kix"'

and in my upload.kix...


break off
$=setconsole("Hide")
sleep 60 * 10 ;secs * mins
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#157544 - 2006-02-21 10:18 PM Re: Schedule task n minutes after logon Script
Pascal Offline
Fresh Scripter

Registered: 2004-04-05
Posts: 28
Loc: Paris, France
We are running the logon script asynchronous but with showing the console to the users...
Top
#157545 - 2006-02-21 10:34 PM Re: Schedule task n minutes after logon Script
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Well then do a RUN like Rad just showed and it should work fine but don't show console or use WKIX32.EXE

Edited by NTDOC (2006-02-21 10:34 PM)

Top
#157546 - 2006-02-22 01:01 AM Re: Schedule task n minutes after logon Script
Pascal Offline
Fresh Scripter

Registered: 2004-04-05
Posts: 28
Loc: Paris, France
Thanks a lot
Top
#157547 - 2006-02-23 10:37 PM Re: Schedule task n minutes after logon Script
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm ... Conrad,

i have to wonder why you do this :

$=setconsole("Hide")

while you launch your script with:

run 'wkix32.exe ...

In the best case it would cause the console to flash and vanish again


Edited by Jochen (2006-02-23 10:39 PM)
_________________________



Top
#157548 - 2006-02-23 11:59 PM Re: Schedule task n minutes after logon Script
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
better to leave it out and not create the console in the first place.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 1046 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.061 seconds in which 0.025 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