I just ran the script with the new modifications. I get this error:
Code:
 E:\kixtest>kix32.exe createlocalshare.kix

ERROR : expected ')'!
Script: E:\kixtest\UDF\CreateShare.udf
Line : 15

E:\kixtest>

_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5