Code: Select all
@echo off
echo What name do you want to display?
set /p name=
echo Your name is %name%!
echo What color red, green or blue?
set /p color=
echo You chose %color%
echo What font size do you want?
set /p fontsize =
echo You chose %fontsize%pt as fontsize
set "html=^<html^> ^<body^> ^<p^> ^<span style='fontsize:%fontsize%pt'^>Hello^</span^> ^<span style>='color:%color%'>%name%^</span>^</p> ^</body> ^</html> makehtml.html
echo Hello, %name% > hello.htm
pause
P.S The aim of the script is to run in two modes interactively and non interactively, so above there's the interactive mode, where the aim is to ask the user for their name, the color they want and font size, after that if the user answered everything correctly a html page would open Saying Hello, "Name". The non interactively mode is supposed to run the same thing after the user enters for example "Hello.bat "David" blue 40 " in the console, which I have not been able to do as well.