Jump to content

Pijano

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Slovenia

Posts posted by Pijano

  1. Hello, i am making a batch script that will install another batch script. It looks like this:

    @echo off

    echo @echo off > example.bat

    echo echo Hi >> example.bat

    echo echo 1.) Option1 >> example.bat

    echo echo 2.) Option2 >> example.bat

    echo echo 3.) Option3 >> example.bat

    echo if %selection%==1 goto opt1 >> example.bat

    echo if %selection%==2 goto opt2 >> example.bat

    echo if %selection%==3 goto opt3 >> example.bat

    So it displays all this text and saves what is displayed to example.bat. But it will display variables as their values; instead of making this:

    if %selection%==1 goto opt1

    it will do this:

    if ==1 goto opt1

    because theese variables have no value. So, is there a way to tell this script to display variable names instead of values?

    p.s.

    also, a pause message is "Press any key to continue..." . Can i change that?

×
×
  • Create New...