• How to put in menu.ctl xtern_dos

    From Mvan Le@3:800/432 to All on Wednesday, May 04, 2011 01:32:22
    How do I put a space in the <cmd> part of a Xtern_Dos menu item ?

    Eg, in "menus.ctl":

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

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

    I don't want to use a MECCA file.

    I think there's a trick to do this or some special character sequence for blank
    spaces in a *.ctl (or that could just be my imagination). The closest thing I can find in the documentation is "%U" but this is for underlines.

    --- Maximus 3.01
    * Origin: Xaragmata / Adelaide SA telnet://xaragmata.mooo.com (3:800/432)
  • From Mvan Le@3:800/432 to Mvan Le on Wednesday, May 04, 2011 01:41:38
    How do I put a space in the <cmd> part of a Xtern_Dos menu item ?

    Eg, in "menus.ctl":

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

    The above example will give an "Invalid ACS definition:
    'DORINFO1.DEF'" error (Maximus treats the
    "dorinfo1.def" as the access definition rather than a
    parameter to "KNK.BAT"). I want Maximus to treat
    "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)