exiftool -r '-FileName<IMG_${FileIndex}%c.%e' DIR
To format a memory card:
Highlight USER SETTING > FORMAT in the setup menu and press MENU/OK.
A confirmation dialog will be displayed. To format the memory card, highlight OK and press MENU/OK. To exit without formatting the memory card, select CANCEL or press DISP/BACK.