Introduction: How to Create a Web-opener in Batch

Before creating a web-opener lets go through a simple code tutorial..

1>(echo) code "echo" are used to write a text for e.g " echo Welcome to Instructables".
2>(color 30)code "color" are used to give color to background and font.
3>(set /p =)code "set /p" is used to create console in program.
4>(title)code "title" is used to give title to program 
5>(start)code "start" is used to start a external file.
6>(pause)code "pause" is used to pause a program to avoid, crash. 
 
Here's the code
<---------------------------------------------------------------------------------

@echo off
title Web opener
color 30
:main
echo.
echo Type url (www.example.com)
echo.
set /p url=www.
echo.
start http://www.%url%/
echo.
echo Web history: %url% was opened..
pause
cls
goto main

-------------------------------------------------------------------------------->

Explanation
1>The code "set /p url" is used to create a console in program and got value can be showed by "%url%".
2>When user types url and presses enter, then that value is forwarded to the code "start" and got value is showed by "%url%".
3> In the same way "echo Web history: %url% was opened.." can be showed..

Please leave a COMMENT..

Step 1: Extraa

You can add the color codes..

this are some of color codes
Sets the default console foreground and background colors.

COLOR [attr]

  attr        Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground.  Each digit
can be any of the following values:

    0 = Black       8 = Gray
    1 = Blue        9 = Light Blue
    2 = Green       A = Light Green
    3 = Aqua        B = Light Aqua
    4 = Red         C = Light Red
    5 = Purple      D = Light Purple
    6 = Yellow      E = Light Yellow
    7 = White       F = Bright White