A. Fixing .bat files that have lost their associations is simple. Enter the following commands.

ftype batfile="%1" %*
assoc .bat=batfile