that's weird.
how many newbie programmers you think go and mod the libraries done by MS?
I know, they are cryptic as the code I produce, but anyway.

the base line is, if you have something proven working, don't mess with it.
if your code does fail, don't mess with it. trust it.

you are just asking for problems if you go and tweak the UDFs.
well, most of them.

there is still some UDFs (even by moderators) that don't qualify as UDFs as they require you to tweak them to make them work.
won't name anybody here as have personally complained to them multiple times already.

you were already told how to call the UDF with specified path.
you can use your curdir (which I never ever use btw) there.
after the function-call, you can easily put if @error "error found" endif line.

it's so simple I don't see any reason but stubberness forcing you to insist tweaking and braking the code.
_________________________
!

download KiXnet