|
Answer» Hi there. I have a PROBLEM here with a batch file I am trying to get to work. Well it works but I wanted to add a feature and do not have the slightest IDEA how. Basicaly the line i need help with is pipeing an ECHO into a text file.
echo Message > Output.txt
The question i have is if there is a way to format the "message" being piped into the text file automaticaly so when you OPEN the .txt in notepad it is already formated with a diffrent font, size, or color.
thanks for any help.
As far as I'm aware this isn't posisble in DOS (or the xp prompt) without somesort of third party tool. (echoing in lines of text, no problem. but editing the colour I'm not so sure....)
You might be able to do this with vbscript...notepad does not show different colours, and the font information is not contained in the file. I think it would be pretty easy to format in HTML if that would work: Code: [Select]echo ^<html^>^<body^>^<b^>Bold Message^</b^>^<br^>^<font color=red^>Red Message^</font^>^</body^>^</html^> > Output.html I think that DOS defaults to character based ascii fonts, not graphical so I don't think that would work. Ditto for Notepad.
AndyF
|