How do you write comments in doskey macro files?
This page has an example of a workaround for comments in doskey.
This involves using ;= as a pseudo-comment e.g.
;= File listing enhancements.
ls=dir /x $*
l=dir /x $*
ll=dir /w $*
la=dir /x /a $*
;= Remember to set the ; back to null at the end.
;= Otherwise, you may trigger an error on load.
;=
I ended up splitting related commands into separate macro files, and running a bat-script to load them all. The bat-file then contains REM comments, while the doskey macro files are entirely comment-free.
REM Macros that deal with the XYZ project
doskey /macrofile=XYZ_macros.txt
(It is like a combination of James Broadhead's and eduffy's suggestions)