I was told that this is the right address to send such requests to: my
generic-x.el doesn't know MS Windows' .cmd extension. As far as I know
this is the same as .bat files, so I added
"\\.[cC][mM][dD]\\'"
to the file extension list of bat-generic-mode's define-generic-mode.
It works now fine for me (as I usually create .cmd files).
.cmd files has existed as far back as in Windows NT4, maybe even
Windows NT 3.X, so if this extension is not included in generic-x yet,
I think it should be included now.
Also, there are some differences in how .bat and .cmd files are
handles but I do not remember what it was right now.