Sign in to follow this  
Followers 0
iamtheky

Redirecting output to RTF [SOLVED]

1 post in this topic

#1 ·  Posted (edited)

You have to specify all your colors, then make one long ass command. No appending.

$bad = "this stuff is bad"

$good = "this stuff is good"

runwait ("cmd /c " & "echo {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\fswiss\fprq2\fcharset0 Arial;}}{\colortbl ;\red128\green0\blue0;\red0\green128\blue0;}{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\cf1\lang1033\f0\fs20 " & $bad & "\par\par\cf2\" & $good & "\cf1\f0\par} > c:\colors.txt")

run ("C:\Program Files\Windows NT\Accessories\wordpad.exe c:\colors.txt")
Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0