Need Help With Batch Code

Discussion in 'Computer Programming, Emulation, and Game Modding' started by MarioMasta64, May 4, 2017.

  1. MarioMasta64
    OP

    MarioMasta64 hi. i make batch stuff and portable shiz

    Member
    1,890
    408
    Dec 21, 2016
    United States
    @<begin input code>@ #<begin choice response># $<begin command>$

    input.txt to be read in. (i need to figure out how to start and stop reading at a certain symbol)
    @d@ #Open In Browser# $start <link revoked>$

    @Echo off
    Color 0A
    cls
    setlocal enabledelayedexpansion
    :: read in input and set @ as start reading into a temp variable and set variable to %<input code>% with value of <begin command> i know how to read a line into a variable so i basically want to read all this from a variable %line%
    echo %<input code>%. #<choice response>#
    set /p choice="choice: "
    if "%choice%"=="<input code>" then !%choice%!

    example variable:
    "%d%" == "start <link revoked>"
    "%message%" == "Open In Browser"

    displayed output:
    d. Open In Browser
    choice: <blinker>

    message will be a temp variable as it will be read in as the menu progresses through each line of textand serves no purpose other than being a throw away variable

    i know i can make new lines but i need someway for my interpreter to tell between display code and menu code
     
  2. MarioMasta64
    OP

    MarioMasta64 hi. i make batch stuff and portable shiz

    Member
    1,890
    408
    Dec 21, 2016
    United States