And the winning line to make the script work was

code:
shell '%comspec% /c RD /S /Q "\\$machines\c$$\mes documents\leh_data" +  >nul 2>nul'

However, what I don't understand is why I need to put the double '$' after the C. I have other scripts using 'C$' and they function correctly. I figured that because I was shelling out, the script would see C$ as a hidden share (which it is) and that I wouldn't need to put in the double $.

I even put the double $ into my original script that I posted here and that seems to work fine. Has anyone else seen this anomalie with Kix 4.12. All my other scripts were written using 4.11.

Thanks to all for their help.

Z.