#183699 - 2007-12-1606:23 AMRe: using tclib library to change passwords
[Re: brewdude6]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
You need to call tcInit() before you call any tcLib functions. tcInit() will declare the arrays the first time it is called, and initialize them with appropriate values on each subsequent call. Simply follow the Call statement with a tcInit() function call and your problem will be resolved.
You're calling the tcGetTasks without an initial call to tcInit. The real problem is that tcInit not only initializes the task arrays, but several common parameters, such as the location of JT.EXE.
Glenn
PS - here's an example script that will gather the tasks from a remote system, locate tasks with a specific user ID and change the credentials:
_________________________ Actually I am a Rocket Scientist!