It may be that there is a txt suffix behind the bant file. The full name should be the file, bat.txt. However, you have hidden the extension of the file, so the following. txt is invisible. Open my computer, find the tools and folder options on it, check, and then click OK to hide the known file type extensions.
When renaming, can you see the suffix txt?,If you can, change txt to bat. If you can't, you may have hidden the extension of a known file type. You can open "My Computer", click "Tools", "Folder Options", "View", and there is a "Hide the extension of a known file type". Remove the previous check, and then rename it.