<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>plasmid.co.uk &#187; command prompt</title>
	<atom:link href="http://plasmid.co.uk/tag/command-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://plasmid.co.uk</link>
	<description>because life is faster in reverse ...</description>
	<lastBuildDate>Thu, 20 May 2010 23:07:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://plasmid.co.uk</link>
  <url>http://plasmid.co.uk/wp/favicon.ico</url>
  <title>plasmid.co.uk</title>
</image>
		<item>
		<title>Write console text to a file (Windows cmd.exe)</title>
		<link>http://plasmid.co.uk/2008/03/26/write-console-text-to-a-file-windows-cmdexe/</link>
		<comments>http://plasmid.co.uk/2008/03/26/write-console-text-to-a-file-windows-cmdexe/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 20:53:50 +0000</pubDate>
		<dc:creator>plasmid</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://plasmid.co.uk/2008/03/26/write-console-text-to-a-file-windows-cmdexe/</guid>
		<description><![CDATA[Writing directly from the Windows command line to a file might not be something you need to do very often. The famous black and white console is better suited to serving system commands and file operations than being a stand-in for notepad. However, it is sometimes useful to have the option of writing multiple lines [...]]]></description>
			<content:encoded><![CDATA[<p>Writing directly from the Windows command line to a file might not be something you need to do very often. The famous black and white console is better suited to serving system commands and file operations than being a stand-in for notepad. However, it is sometimes useful to have the option of writing multiple lines of text to a file directly from the trusty prompt.</p>
<p><strong>Method One</strong></p>
<p>This is suitable for creating/overwriting a file with multiple lines of text.</p>
<p><code>copy con SOME_FILE.txt<br />
Type your text here<br />
You can even have multiple lines!</code></p>
<p>When finished, press CTRL+Z to confirm your action (or CTRL+C to cancel) and ENTER.</p>
<p>If you want to append some text instead of overwriting it completely, follow as above but using:</p>
<p><code>copy SOME_FILE.txt + con</code></p>
<p><strong>Method Two</strong></p>
<p>Open up the command prompt and type:</p>
<p><code>echo SOME TEXT &gt; SOME_FILE.txt</code></p>
<p>This method creates/overwrites SOME_FILE.txt with the text you entered before the <code>&gt;</code>. It is only suitable for entering a single line of text into a file.</p>
<p>As with method one, it possible to append text using <code>&gt;&gt;</code> instead of <code>&gt;</code> in the command.</p>
]]></content:encoded>
			<wfw:commentRss>http://plasmid.co.uk/2008/03/26/write-console-text-to-a-file-windows-cmdexe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.325 seconds -->
