<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Guillaume Bordier's blog - All Comments</title><link>http://blogs.technet.com/b/gbordier/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Powershell and writing files (how fast can you write to a file? )</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3571703</link><pubDate>Thu, 09 May 2013 13:48:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3571703</guid><dc:creator>Marcus</dc:creator><description>&lt;p&gt;In your example for Stream Writer it does not output anything to the text file...&lt;/p&gt;
&lt;p&gt;You should have $_ in place of your $s&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;$stream = [System.IO.StreamWriter] &amp;quot;t.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;1..10000 | % {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;$stream.WriteLine($_)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;$stream.close()&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3571703" width="1" height="1"&gt;</description></item><item><title>re: Powershell and writing files (how fast can you write to a file? )</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3561999</link><pubDate>Sun, 31 Mar 2013 03:27:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3561999</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;Very interesting. However, you compared a little different between these methods. You use &amp;nbsp;the StreamWriter to write line by line, and you use the other methods to write in one big chunk. Maybe this affects performance? I made a comparison myself (using the big chunk method), and the &amp;gt;&amp;gt; method and StreamWriter method had the same performance (both 40 seconds).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3561999" width="1" height="1"&gt;</description></item><item><title>re: Powershell and writing files (how fast can you write to a file? )</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3547589</link><pubDate>Tue, 22 Jan 2013 20:27:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3547589</guid><dc:creator>imbruck2</dc:creator><description>&lt;p&gt;$b = 1..10000&lt;/p&gt;
&lt;p&gt;$b | Out-File C:\Temp\temp.txt&lt;/p&gt;
&lt;p&gt;2.3 seconds&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3547589" width="1" height="1"&gt;</description></item><item><title>re: Powershell and writing files (how fast can you write to a file? )</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3485437</link><pubDate>Thu, 08 Mar 2012 12:54:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3485437</guid><dc:creator>Kay</dc:creator><description>&lt;p&gt;@dak&lt;/p&gt;
&lt;p&gt;&amp;gt; file.txt doesn&amp;#39;t accomplish the same thing&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3485437" width="1" height="1"&gt;</description></item><item><title>re: Where did my disk space go ? [very long directory names, system directories, symbolink and other hard links ...], meet xdir.exe</title><link>http://blogs.technet.com/b/gbordier/archive/2009/02/03/where-did-my-disk-space-go-very-long-directory-names-system-directories-symbolink-and-other-hard-links-meet-xdir-exe.aspx#3380500</link><pubDate>Sat, 15 Jan 2011 07:47:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3380500</guid><dc:creator>mdm</dc:creator><description>&lt;p&gt;I use spacemonger &lt;a rel="nofollow" target="_new" href="http://www.sixty-five.cc/sm/"&gt;http://www.sixty-five.cc/sm/&lt;/a&gt;, and it is very good for this!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3380500" width="1" height="1"&gt;</description></item><item><title>re: Where did my disk space go ? [very long directory names, system directories, symbolink and other hard links ...], meet xdir.exe</title><link>http://blogs.technet.com/b/gbordier/archive/2009/02/03/where-did-my-disk-space-go-very-long-directory-names-system-directories-symbolink-and-other-hard-links-meet-xdir-exe.aspx#3316728</link><pubDate>Thu, 04 Mar 2010 05:41:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3316728</guid><dc:creator>Aries</dc:creator><description>&lt;p&gt;The tool DiskSpaceFan is better.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.diskspacefan.com"&gt;http://www.diskspacefan.com&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3316728" width="1" height="1"&gt;</description></item><item><title>re: Powershell and writing files (how fast can you write to a file? )</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3280037</link><pubDate>Wed, 09 Sep 2009 15:33:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3280037</guid><dc:creator>Nicolas R</dc:creator><description>&lt;p&gt;Merci pour ce post, interessant surtout avec le temps d'execution, A+&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3280037" width="1" height="1"&gt;</description></item><item><title>re: Powershell and writing files (how fast can you write to a file? )</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3236498</link><pubDate>Thu, 07 May 2009 01:09:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3236498</guid><dc:creator>dak</dc:creator><description>&lt;p&gt;1 s with old school language : vbscript ;-)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3236498" width="1" height="1"&gt;</description></item><item><title>Petit post sur Powershell et les fichiers</title><link>http://blogs.technet.com/b/gbordier/archive/2009/05/05/powershell-and-writing-files-how-fast-can-you-write-to-a-file.aspx#3235716</link><pubDate>Tue, 05 May 2009 17:13:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3235716</guid><dc:creator>Microsoft Services France Unified Communication Team</dc:creator><description>&lt;p&gt;Je viens de publier un petit post rapide sur la m&amp;#233;thode d’&amp;#233;criture dans un fichier avec PSH : Powershell&lt;/p&gt;
&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3235716" width="1" height="1"&gt;</description></item><item><title>re: Where did my disk space go ? [very long directory names, system directories, symbolink and other hard links ...], meet xdir.exe</title><link>http://blogs.technet.com/b/gbordier/archive/2009/02/03/where-did-my-disk-space-go-very-long-directory-names-system-directories-symbolink-and-other-hard-links-meet-xdir-exe.aspx#3228777</link><pubDate>Tue, 21 Apr 2009 20:51:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3228777</guid><dc:creator>JD</dc:creator><description>&lt;p&gt;XDIR is nice. If interested in a graphical user interface, try FolderSizes - &lt;a rel="nofollow" target="_new" href="http://www.foldersizes.com"&gt;http://www.foldersizes.com&lt;/a&gt;. It can see hidden folders, long paths, etc. as well and lots more.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3228777" width="1" height="1"&gt;</description></item></channel></rss>