1.

Solve : writing multiline .txt?

Answer»

no,i'm not crazy, i'm just a noobQuote from: Fantini on August 24, 2007, 03:15:50 PM

I have this .bat:

...
and I want to make it LOOK like this:

Code: [Select]ECHO off
title TarreWoW Launcher V0.1 by Fantini
cls
:START
ECHO.
ECHO 1. TarreWoW
ECHO 2. Servidor numero 2: %opcion%
ECHO 3. Salir
set /p choice=Elige el Servidor Porfavor:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto tarrewow
if '%choice%'=='2' goto servidor 2
if '%choice%'=='3' goto end
ECHO "%choice%" No ES una opcion valida, intentalo denuevo porfavor
ECHO.
pause
cls
goto start
:tarrewow
ECHO SET realmlist tarrewow.getmyip.com > realmlist.*censored*
goto end
:servidor 2
ECHO SET realmlist %opcion% > realmlist.*censored*
goto end
:end
cls
ECHO.
ECHO TarreWoW Launcher V0.1 by Fantini
ECHO Gracias por preferirnos...
ECHO.
pause
but when I edit my TarreWoW.bat I see '' instead of '%choice%'

Open notepad or any editor you like, key in the code above save it as some name you like, and you are ready to go.you can go like this echo %%hello%%>file.txt
or
echo if '%%choice%%'=='3' goto terrewow >>tarrewow.batHi Fantini!

I request you to please TRY to use the COPY CON filename.txt command for storing text in multilines.

For e.g. C:\>COPY CON filename.txt
write some text here with multilines. When writing of files is over press CTRL+Z button to save the contents of file.

You may also press F6 button instead of CTRL+Z.


Discussion

No Comment Found