Page 1 of 1 1
Topic Options
#42468 - 2003-07-04 05:36 PM ScheduleTask UDF
anthonyalderson Offline
Getting the hang of it

Registered: 2003-03-20
Posts: 52
Loc: England
I think this one would be directed straight at you jens but anyone who knows can help me out here,

I'm trying to use the scheduletask udf found here on the board and created by jens.

Thing is i'm not sure how to enter the parameters, i mean do i add them in directly where the blank space is or add them elsewhere, or call them in from elsewhere. Now i've read the manual but its not very helpful so i've come to you guys again, the guaranteed help section lol

Anyway if anyone can help i'd be most thankful,

Anth

Top
#42469 - 2003-07-04 05:39 PM Re: ScheduleTask UDF
anthonyalderson Offline
Getting the hang of it

Registered: 2003-03-20
Posts: 52
Loc: England
sorry again, its this UDF right here:

ScheduleTask UDF

Top
#42470 - 2003-07-04 05:55 PM Re: ScheduleTask UDF
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... Jens does not appear to be online today so I will give it a go...

Did you look at the example he gave in the UDF header?
quote:
;EXAMPLE
$name='demo.job'
$comp='SERVER'
$date='11/11/01'
$time='NOW'
$type='ONCE'
$user='administrator'
$pw='adminpassword'
$comment='cool!'
$command='notepad'
$parameters=''
$typeargs=''
$retcode=scheduletask($name,$comp,$date,$time,$type,$user,$pw,$comment,$command,$parameters, $typeargs)

It looks pretty straight forward. What part of it do you not understand?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#42471 - 2003-07-04 06:03 PM Re: ScheduleTask UDF
anthonyalderson Offline
Getting the hang of it

Registered: 2003-03-20
Posts: 52
Loc: England
you'll do just as good les

i noticed the example yes but still dont fully understand the code, i means its beyond me for the time being, but its where the actual parameters go that i dont understand, see i'm just about to try it out, but do the parameters go in the snippet of code below:

code:
  if not vartype($parameters)
Dim $parameters
$parameters=''
endif
; this should point to your copy of jt.exe

do they go between the quotations after the word parameters or elsewhere????

Anth

Top
#42472 - 2003-07-04 06:27 PM Re: ScheduleTask UDF
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
No, you should not touch anything inside the UDF. The parameters go in the snippet I posted above. Just replace the ones in the example with your own.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#42473 - 2003-07-04 06:37 PM Re: ScheduleTask UDF
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Let me rephrase that...

You do need to update the line
quote:

$jtexe='jt.exe'

to reflect where your copy is.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#42474 - 2003-07-07 03:06 PM Re: ScheduleTask UDF
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes
code:
; this should point to your copy of jt.exe
$jtexe='jt.exe'

is the only line that might need to be updated if JT.EXE is not located inside a folder that is part of a path statement.

However, I am planning to rework the UDF again a little bit, then the path to JT.EXE will be an optional parameter and the default will just assume that JT.EXE can be resolved through the %PATH% environment variable.

UDFs should normally not be changed by the end-user.
_________________________
There are two types of vessels, submarines and targets.

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 661 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.064 seconds in which 0.031 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