Hi there and thanx for contributing

3 things I have to mention though.

-You don't put all variables in a local scope (ie. $rc,$ExeDir); This will cause
confusion and scope issues ...

- I see this line : $rc=RedirectOutput ("$exedir\Function-HKU.log")
but somehow I miss the line $rc=RedirectOutput("") which would switch it off...
imagine a user who uses it in a script that prints its information to the console

- Please adapt the function so that it will work with these two Options set (there are quite a bunch using these in their scripts ) :

  • SetOption("NoVarsInStrings","ON")
  • SetOption("Explicit","ON")


Thank you in advance for editing

_________________________