1.

Solve : name input?

Answer»

How do i do this?
(its not realy like this, but its the way i do it)

ECHO Hi *NAME* > test.txt
ECHO Bye *name* >> test.txt

but the *name* part must be defined by the USER

thxECHO Hi %1 > test.txt
ECHO Bye %1 >> test.txt

The %1 substitutes the text following the batch FILE name into the batch file, if the name of the batch file is TEST.BAT, you'd type:

TEST MYNAME

and MYNAME would be substituted for the %1 in the above statements.
But I need the user to enter the *name* into the screen, is this possible and if it possible; how?Try INPUT.ZIP from http://garbo.uwasa.fi/pc/batchutil.html, and note that there are tons of other batch utilities there too.



Discussion

No Comment Found