I was wondering if it is possible to use the "<" and ">" when writing to a HTML file from a batch file. I need this so I can write certain things to html files. I tried the following and it didn't work:
ECHO </html> >>File.html
PS. Thanks in advance
It's a little messy, but you have to escape the <
and >
characters using ^
:
echo ^<html^> >> a.html
echo ^<body^>Hi^</body^> >> a.html
echo ^</html^> >> a.html
Result:
<html>
<body>Hi</body>
</html>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments