Gary,

Just spotted a problem. Try this

code:
 


Change this

$autocad = $path+"c:\program Files\Common Files\Autodesk Shared"

to this

$autocad = $path+";c:\program Files\Common Files\Autodesk Shared"


Duncan