“Bad command or filename”

Here’s a comprehensive write-up on the error when using HDD Regenerator (especially from DOS/bootable media).

3.2. Change to the Correct Directory

A:\> hddreg.exe

while trying to run HDD Regenerator is a frustrating roadblock, but it is rarely a sign that your hard drive is dead. Instead, it is a classic

8.3 naming convention

Older versions of HDD Regenerator (and the boot images they create) rely on the FAT16 or FAT32 file system using the (8 characters for the name, 3 for the extension).