You are not logged in.

#1 17 Apr 2014 20:33

jaybird
New Member
Registered: 17 Apr 2014
Posts: 4

Help with printing

I'm wanting to print an output and I'm not really sure how to do it. can you help me out?
I'll just put an example:

@echo off

echo What's your name?
set /p name=

echo What's your age?
set /p age=

display:
echo Your name is: %name%
echo And you are %age% years old
echo.
echo.
echo ----------------------------

echo Do you want to print this? (Y/N)
set /p answer=

if %answer% == Y goto printer
if %answer% == N goto exit

:printer
????????????

........

how do I print :display?

Thanks

Offline

Board footer

Powered by