How to write the "greater than symbol" in a HTML file using a batch file

user1102721

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

Jonathon Reinhart

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How can I use a batch file to write to a text file?

From Dev

How to write standard error in text file using batch command

From Dev

Write a line with ampersand using batch command in a text file

From Dev

generate a batch(.bat) file using javascript or html

From Dev

How to make input write to file? - Batch

From Dev

How write 'Ñ' in a file using python

From Dev

How to add a greater than symbol (>) to command prompt in Node.js?

From Dev

How do I write this in a batch file

From Dev

How to Write to a file using StreamWriter?

From Dev

How to write into a Log file from the batch file?

From Dev

How to write html to a file in android

From Dev

generate a batch(.bat) file using javascript or html

From Dev

Batch file write to txt

From Dev

How to write to a batch file to tell it to write to another batch file

From Dev

how to read file with batch and use it in loop to write in temporary file

From Dev

How to write, and use, a text batch command file

From Dev

How to write to a file that writes to a file in Batch

From Dev

How can I filter only certain elements of an XML file and write to another XML file using a batch file

From Dev

Windows batch: how to write cmd output to a file?

From Dev

How to write into file using echo with a predefined constant and a variable combined without spaces in batch?

From Dev

How to write to a file using an FPGA

From Dev

how to create batch file in system folder using a batch file

From Dev

How to run batch file using Runas command from a batch file

From Dev

How to write %~dp0 into a batch file created by a batch file?

From Dev

Using Echo within a Batch File to write an IF Statement to a Text File

From Dev

How to disable double greater than symbol view at tab spaces in Kate?

From Dev

How to write a batch file that simply writes the given parameters into a file

From Dev

How to write HTML response in a file using JMeter

From Dev

How to write a batch file to return a WMIC result

Related Related

  1. 1

    How can I use a batch file to write to a text file?

  2. 2

    How to write standard error in text file using batch command

  3. 3

    Write a line with ampersand using batch command in a text file

  4. 4

    generate a batch(.bat) file using javascript or html

  5. 5

    How to make input write to file? - Batch

  6. 6

    How write 'Ñ' in a file using python

  7. 7

    How to add a greater than symbol (>) to command prompt in Node.js?

  8. 8

    How do I write this in a batch file

  9. 9

    How to Write to a file using StreamWriter?

  10. 10

    How to write into a Log file from the batch file?

  11. 11

    How to write html to a file in android

  12. 12

    generate a batch(.bat) file using javascript or html

  13. 13

    Batch file write to txt

  14. 14

    How to write to a batch file to tell it to write to another batch file

  15. 15

    how to read file with batch and use it in loop to write in temporary file

  16. 16

    How to write, and use, a text batch command file

  17. 17

    How to write to a file that writes to a file in Batch

  18. 18

    How can I filter only certain elements of an XML file and write to another XML file using a batch file

  19. 19

    Windows batch: how to write cmd output to a file?

  20. 20

    How to write into file using echo with a predefined constant and a variable combined without spaces in batch?

  21. 21

    How to write to a file using an FPGA

  22. 22

    how to create batch file in system folder using a batch file

  23. 23

    How to run batch file using Runas command from a batch file

  24. 24

    How to write %~dp0 into a batch file created by a batch file?

  25. 25

    Using Echo within a Batch File to write an IF Statement to a Text File

  26. 26

    How to disable double greater than symbol view at tab spaces in Kate?

  27. 27

    How to write a batch file that simply writes the given parameters into a file

  28. 28

    How to write HTML response in a file using JMeter

  29. 29

    How to write a batch file to return a WMIC result

HotTag

Archive