In Terminal:
dropdmg -f ndif ~/Desktop/folder
Run dropdmg with no arguments to see a list of the available options.