<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>Desktop</title><link>http://powershell.com/cs/media/g/desktop/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Run and time a script or command in the background </title><link>http://powershell.com/cs/media/p/8742.aspx</link><pubDate>Mon, 20 Dec 2010 07:33:17 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:8742</guid><dc:creator>Carsten Schwartz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Running for example release scripts for releasing software, can have a large overhead if you print a lot of info in the console. At the same time you might want to time the relase to see how fast it us. Easy enough you run your command/ps1 file in the background using the start-job commandlet.&lt;/p&gt;
&lt;p&gt;This script uses start-job together with Register-ObjectEvent to be able to time a job running in the background, for example:&lt;/p&gt;
&lt;p&gt;PS &amp;gt;.\RunACommandInTheBackground.ps1 .\MakeRelease.ps1 &lt;a href="https://svnserver:port/svn/OurProduct/trunk"&gt;https://svnserver:port/svn/OurProduct/trunk&lt;/a&gt; 613&lt;br /&gt;Starting .\MakeRelease.ps1 &lt;a href="https://svnserver:port/svn/OurProduct/trunk"&gt;https://svnserver:port/svn/OurProduct/trunk&lt;/a&gt; 613 as Job #1... &lt;br /&gt;PS &amp;gt; Job #1 is finished...&lt;br /&gt;Job Started:&amp;nbsp; 10/29/2010 07:51:34&lt;br /&gt;Job Stopped:&amp;nbsp; 10/29/2010 07:54:39&lt;br /&gt;Time Elapsed: 00:03:05.3862306&lt;br /&gt;PS &amp;gt; Get-Job&lt;br /&gt;PS &amp;gt;&lt;/p&gt;
&lt;p&gt;The script&amp;nbsp; runs a command or powershell script with any number of parameters in the background. The script creates a job runs it and shows start, stop and elapsed time when the job is terminated. The job is also removed from the Job list on termination.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.87.42/RunACommandInTheBackground.ps1" length="2098" type="application/octet-stream" /></item><item><title>Generic Delete Directory Contents</title><link>http://powershell.com/cs/media/p/7571.aspx</link><pubDate>Thu, 09 Sep 2010 19:36:36 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:7571</guid><dc:creator>goodfth</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This script deletes files from a directory path passed into it as a parameter and excludes some well known directories from being processed. &amp;nbsp;The script also includes some simple logging to a file with the date/time it was executed and what path files were deleted from.&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.75.71/GenericDeleteDirectoryContents.ps1" length="3512" type="application/octet-stream" /></item><item><title>Open DialogBox by using .NET</title><link>http://powershell.com/cs/media/p/637.aspx</link><pubDate>Tue, 23 Dec 2008 15:41:34 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:637</guid><dc:creator>Sylvain LESIRE</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Next script to open file by using .NET&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;@Thomas Lee: Can&amp;nbsp;you try it on W2k8? Can you tell us if it runs....&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.06.37/OpendialogBox.NET.ps1" length="443" type="application/octet-stream" /></item><item><title>Open DialogBox by using Com Object</title><link>http://powershell.com/cs/media/p/598.aspx</link><pubDate>Mon, 22 Dec 2008 09:52:27 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:598</guid><dc:creator>Sylvain LESIRE</dc:creator><slash:comments>6</slash:comments><description>&lt;p&gt;This script permits to show you how to open a dialog box by using COM Object : &lt;span style="font-size:x-small;color:#800000;font-family:Courier New;"&gt;UserAccounts.CommonDialog&lt;/span&gt;&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.05.98/OpendialogBox.ps1" length="425" type="application/octet-stream" /></item></channel></rss>
