<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Handy little function: Create-Script</title>
	<atom:link href="http://www.peetersonline.nl/index.php/powershell/handy-little-function-create-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peetersonline.nl/index.php/powershell/handy-little-function-create-script/</link>
	<description>Using Powershell for (virtually) everything!</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:41:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/powershell/handy-little-function-create-script/comment-page-1/#comment-1155</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 04 Dec 2008 16:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/powershell/handy-little-function-create-script/#comment-1155</guid>
		<description>Hi Derek,
Thanks! And you&#039;re welcome.
You&#039;ve made some nice customizations. Thanks for commenting!
Hugo</description>
		<content:encoded><![CDATA[<p>Hi Derek,<br />
Thanks! And you&#8217;re welcome.<br />
You&#8217;ve made some nice customizations. Thanks for commenting!<br />
Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Mangrum</title>
		<link>http://www.peetersonline.nl/index.php/powershell/handy-little-function-create-script/comment-page-1/#comment-1154</link>
		<dc:creator>Derek Mangrum</dc:creator>
		<pubDate>Thu, 04 Dec 2008 16:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/powershell/handy-little-function-create-script/#comment-1154</guid>
		<description>Very cool function! I would always just re-type this stuff as needed. I love this!

I did modify a couple of things in mine.

- Rather than Invoke-Item, I am using:  $psplus.OpenFile($scriptFile)

This guarantees that the script file open in my PowerShellPlus editor.


- I am overwriting the temp script file like this:
if (test-path $scriptFile) {Remove-Item $scriptFile -force}

This prevents an error from showing up if the file does not exist. Also, it forces the overwrite, which I prefer.

Great little tool! Thank you for sharing it.</description>
		<content:encoded><![CDATA[<p>Very cool function! I would always just re-type this stuff as needed. I love this!</p>
<p>I did modify a couple of things in mine.</p>
<p>- Rather than Invoke-Item, I am using:  $psplus.OpenFile($scriptFile)</p>
<p>This guarantees that the script file open in my PowerShellPlus editor.</p>
<p>- I am overwriting the temp script file like this:<br />
if (test-path $scriptFile) {Remove-Item $scriptFile -force}</p>
<p>This prevents an error from showing up if the file does not exist. Also, it forces the overwrite, which I prefer.</p>
<p>Great little tool! Thank you for sharing it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

