Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: make html file with everything inside  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

Blank2

  • Guest
make html file with everything inside
« on: July 15, 2006, 01:10:03 AM »
Hi everyone. I would like to make a bat file that makes a file called htmlpage.html and it has all the <html><title></title><body></body></html> tags in the file.

So far i have

Code: [Select]
ECHO.html>htmlpage.html
ECHO.
ECHO.title>>htmlpage.html
ECHO.
ECHO./title>>htmlpage.html
ECHO.
ECHO.body>>htmlpage.html
ECHO.
ECHO./body>>htmlpage.html
ECHO.
ECHO./html>>htmlpage.html

problem being i cant put the <> on any of them. If i do then it doesnt work. It's the only way i know how to write something into a file. PLz could someone show me how to do this?

Thanx in advance.
« Last Edit: July 15, 2006, 01:10:27 AM by Blank2 »

Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: make html file with everything inside
« Reply #1 on: July 15, 2006, 02:29:35 AM »
Try escaping the special characters using a caret (u/case 6)

e.g.  echo ^<html^> >filename
         echo.
         echo ^<whatever^> >>filename

etc...

Good luck
One good deed is worth more than a year of good intentions.

Blank2

  • Guest
Re: make html file with everything inside
« Reply #2 on: July 15, 2006, 02:42:00 AM »
ah thank you very much. yay it works. thanx man.

Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: make html file with everything inside
« Reply #3 on: July 15, 2006, 03:01:35 AM »
Thanks for coming back..
One good deed is worth more than a year of good intentions.