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%!
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment