How do I insert multiple texts to multiple files at once using a batch script?

The scenario:

I have 900 empty text files named "001.txt", "002.txt", "003.txt"..."900.txt". I would like to insert the html codes "<p>Number 001</p>", "<p>Number 002</p>", "<p>Number 003</p>"..."<p>Number 900</p>" to the beginning of each of these files. In other words i would like to insert the text "<p>Number 001</p>" to the file 001.txt, the text "<p>Number 002</p>" to the file 002.txt, etc. up to 900.

How do I do this using a batch script in windows?
techdaemon Reviewed by techdaemon on . batch insert texts to the beginning of multiple files How do I insert multiple texts to multiple files at once using a batch script? The scenario: I have 900 empty text files named "001.txt", "002.txt", "003.txt"..."900.txt". I would like to insert the html codes "<p>Number 001</p>", "<p>Number 002</p>", "<p>Number 003</p>"..."<p>Number 900</p>" to the beginning of each of these files. In other words i would like to insert the text "<p>Number 001</p>" to the file 001.txt, the text "<p>Number 002</p>" to the file 002.txt, etc. up to 900. Rating: 5