This a solution I used to rename a file with a date/timestamp in dos.
Because there is a limit to the number of characters displayed on my reply,
some of the lines may wrap onto the following line,...
The DOS message "bad command or file name" means that the command you entered was not recognized as an internal command or as an external command in the working directory or path.