in reply to Re^2: Cannot acces a remote file
in thread Cannot acces a remote file

the dollar sign needs escaping, too:
$path = "\\\\172.x.x.x\\D\$\\foo\\bar\\filename";