I have a directory on a Windows XP machine that contains hundreds of files that look like this:
Some of them have valid file extensions and some have no file extensions.
I'd like to write a batch file that adds a .DAT file extension to all files in my directory with no extension and leave the files with an extension unchanged.
I tried this at the command line:
for %x in (*) do ren "%x" "%x.DAT"
and got this:
Can I do this with a batch file? If so, suggestions please.