Christopher Parker (cparker) wrote in batch_scripting,
Christopher Parker
cparker
batch_scripting

  • Mood:

First Post

@ECHO OFF
SET DEFAULT=world
SET NAME=

CLS
ECHO.

ECHO What is your name?
SET /P NAME="> "

IF "%NAME%"=="" (
SET NAME=%DEFAULT%
)

ECHO Hello, %NAME%!
  • Post a new comment

    Error

    default userpic
  • 1 comment
Hey,

I run the The DOS Users Club Community. I would love your batch script writing expertise there. Check it out!