Subj : How to put <space> in menu.ctl xtern_dos
To   : Mvan Le
From : Mvan Le
Date : Wed May 04 2011 01:41 am

ML> How do I put a space in the <cmd> part of a Xtern_Dos menu item ?

ML> Eg, in "menus.ctl":

ML> ========================================================
ML> =====================
ML> Xtern_Dos   C:\GAMES\KNK\KNK.BAT DORINFO1.DEF   normal
ML>  "Kannons & Katapults"
ML> ========================================================
ML> =====================

ML> The above example will give an "Invalid ACS definition:
ML> 'DORINFO1.DEF'" error (Maximus treats the
ML> "dorinfo1.def" as the access definition rather than a
ML> parameter to "KNK.BAT"). I want Maximus to treat
ML> "dorinfo1.def" as a parameter to the calling batch file.

Ok I figured it out.

I use an underscore "_" to catenate spaces that are meant as part of a single
string and "%U" for an actual underscore in the command line.

==============================================================================
Xtern_Dos   C:\GAMES\KNK\KNK.BAT_DORINFO1.DEF   normal   "Kannons & Katapults"
==============================================================================

--- Maximus 3.01
* Origin: Xaragmata / Adelaide SA telnet://xaragmata.mooo.com (3:800/432)