Fabian,

I made a small change (I hope you dont mind). When checking the share in the RmtshareOutPut.tmp file, you had a limitation of 13 character for the share name. The rest of the share would be truncated. I have replaced the line of code:
$Share=RTRIM(SUBSTR($LINE2,1,13))
to:
$Share=RTRIM(SUBSTR($LINE2,1,INSTR($LINE2,":\")-2))

I have run it and it seems to work fine. If I find any more "bits" I will let you know.

Terry.