Page 1 of 1 1
Topic Options
#64227 - 2002-04-02 11:08 PM schedule task and execute
chuckles Offline
Fresh Scripter

Registered: 2001-12-07
Posts: 27
Loc: new york
Hi all,
I am a beginner at this kixscript and looking for some help on trying to accomplish automatically adding a schedule task to EVERY PC that logons to the domain. The schedule task will be performed at midnight, in addition to adding the tasks to all PC i would like the task to be execute if for the previous day it did not execute. is this possible?
any help is appreciated!

Thanks.

Top
#64228 - 2002-04-03 01:02 AM Re: schedule task and execute
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use the ScheduleTask UDF at http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=12;t=000060
_________________________
There are two types of vessels, submarines and targets.

Top
#64229 - 2002-04-03 05:37 PM Re: schedule task and execute
chuckles Offline
Fresh Scripter

Registered: 2001-12-07
Posts: 27
Loc: new york
Thanks for your help...does anyone have a script that does a DATE compare??

I need something like if this file is not TODAYs date then execute this cmd..is there a script someone can share that can accomplish this?

Top
#64230 - 2002-04-03 05:42 PM Re: schedule task and execute
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Look at the SERIALDATE UDF (http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=12;t=000089) in the UDF section if you need to compare two arbitrary dates and the COMPAREFILETIMES function in Kixtart to compare the filetimes of two files.
_________________________
There are two types of vessels, submarines and targets.

Top
#64231 - 2002-04-03 05:49 PM Re: schedule task and execute
chuckles Offline
Fresh Scripter

Registered: 2001-12-07
Posts: 27
Loc: new york
BTW how do you use these UDFs? do i just copy the udf to a file?
Top
#64232 - 2002-04-03 06:33 PM Re: schedule task and execute
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
The UDFs are "Functions", and if you wanted to you could copy all of them you wanted to use into a single file and then at the top of the file you would call the "function" you want to call and supply the required parameters for it.

You can do calls to the functions based on criteria that you also setup. ie. IF ELSE type conditional checks or INGROUP type checks so that you only call a function if the logon meets your specified criteria.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.058 seconds in which 0.028 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