if you are 100% sure that there are no more dots in the name you could do this afterwards :

Code:
 shell '%ComSpec% /c rename "$opath\$FileNameDOC.pdf" ' + split($FileNameDoc,'.')[0] + '.pdf'

_________________________