I've had that same error on every single version of dpgenc I've ever tried over the last few years.
Never found a fix for it so gave up trying and just used BatchDPG.
For some unknown reason the other day I tried out the version that comes with Moonshell 2 Beta 11 and it worked???
Nothing has...