$DriveDefinition = ReadProfileString($FileLocation + "\shares.ini", "[all]", "drive" + $x)


again, do you have $FileLocation set?
"[all]" is not supported section name. "all" is. remove the brackets.
_________________________
!

download KiXnet