In the example given, you would save the dirPlus function code in another file named "DirPlus().udf" and place it in the same directory as the script you are executing.

the line in question would then load the function into the current script.

Call @SCRIPTDIR + "\DirPlus().udf"
_________________________
Home page: http://www.kixhelp.com/hb/