Easy Snippet

Tuesday, August 20, 2013

Get user input from DOS prompt

Very basic example to get user input from DOS prompt

@ECHO OFF
SET /P yourname=Name :
echo hello, %yourname%
pause


source : http://www.codeproject.com/Tips/123810/Get-user-input-from-DOS-prompt
Posted by Julius Prayogo at 7:18 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: bat, batch script, cmd, DOS command, windows command line

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Pages

  • About

Blog Archive

  • ►  2019 (4)
    • ►  December (3)
    • ►  April (1)
  • ►  2018 (2)
    • ►  July (1)
    • ►  May (1)
  • ►  2017 (3)
    • ►  June (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2016 (3)
    • ►  August (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2015 (8)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (2)
  • ►  2014 (10)
    • ►  October (3)
    • ►  July (2)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  February (1)
  • ▼  2013 (10)
    • ►  December (1)
    • ►  October (2)
    • ►  September (2)
    • ▼  August (3)
      • Enable .NET 4 on IIS 6
      • Get user input from DOS prompt
      • How to enter WebBIOS on IBM server
    • ►  June (2)

About Me

My photo
Julius Prayogo
View my complete profile
Simple theme. Theme images by luoman. Powered by Blogger.