Thomas Zellerin wrote this note in comp.lang.lisp:
[...] seing two small files recalled my recent experiments with bat/cmd
files with lisp inside - it appears that windows conventiently ignore ;
at the beginning of line, so you can have content below in bat/cmd file
and it works. It may be sometimes convenient replacement of long
escaped -x parameter, and it is also quite trivial to have the lisp
part compiled there.
Not that I would have anything against your version, I just thought
this is not so widely known and maybe worthy mentioning.
Sample .cmd file:
; lisp -M lispinit.mem -i %0
(:name "MessageBoxA") (:library "user32.dll")
(:arguments (hwnd int) (text c-string) (capt c-string)
(messagebox 0 "Hello World!" "Message" 0)
(ext:saveinitmem "message" :init-function #'main :executable t :norc t)
; or just call (main)?? -- Joerg Hoehle asks