One of those repetitive tasks is the use of UDF's. We have different scripts using the same UDF. In the past the script using the UDF called it but that started to cause some issues when different scripts call the same UDF.

Our solution.....well not really ours but stolen copied borrowed from someone on this board is to put them all in one UDF folder, enumerate the folder and call each one from the master script like below. This is the very first thing our logon script does.
You never need to actually call a new UDF from script x and check if script y does not call it a second time eliminating error’s with doubly defined variables.

 Code:
;Region Call all functions
$udf = Dir(@LDRIVE + "scripts\functions\*.udf")
While $udf <> "" And @ERROR = 0
	Call @LDRIVE + "scripts\functions\" + $udf
 	$udf = Dir()
Loop
;Endregion
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.