Looks like you didn’t mount drive d: correctly then. Take a look at what Dosbox displays while booting up. It should say something like this:
Drive C is mounted as [path to folder]
Drive D is mounted as [path to image file]
MagicDosbox (C) 2014 – 2024