<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx</link><description>I was going to post a blog entries and realized that the example I wanted to give used some of my utility functions so I'll share them first. I hope you find them interesting. I put them in a file called LibraryTime.ps1 and dot source that during my login.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#760992</link><pubDate>Mon, 18 Sep 2006 20:20:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:760992</guid><dc:creator>rei</dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;Speaking of login, could you do a post on startup best practices?&lt;br&gt;&lt;br&gt;Some stuff on profile.ps1 would be nice, as well as an explanation as to why it's in a separate folder, documents\PSConfiguration (rather than documents\PSH), and how we should organize our stuff in the two folders.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Rei</description></item><item><title>re: Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#761009</link><pubDate>Mon, 18 Sep 2006 20:32:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:761009</guid><dc:creator>PowerShellTeam</dc:creator><description>Rei;&lt;br&gt;&lt;br&gt;Does this help?&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.leeholmes.com/blog/TheStoryBehindTheNamingAndLocationOfPowerShellProfiles.aspx"&gt;http://www.leeholmes.com/blog/TheStoryBehindTheNamingAndLocationOfPowerShellProfiles.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Re: Organizing -- which two folders are you talking about?&lt;br&gt;&lt;br&gt;Lee</description></item><item><title>re: Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#761284</link><pubDate>Tue, 19 Sep 2006 01:48:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:761284</guid><dc:creator>Sourabh</dc:creator><description>I am getting the following error if I create a LibraryTime.ps1 file (in the PsConfiguration folder) and then try to dot source it in my profile. Is the full path required to dot source a file?&lt;br&gt;&lt;br&gt;'.\LibraryTime.ps1' is not recognized as a cmdlet, function, operable program, or script file.&lt;br&gt;At C:\Documents and Settings\sourabhm\My Documents\PSConfiguration\Microsoft.PowerShell_profile.ps1:1&lt;br&gt;+ . &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;&amp;lt; .\LibraryTime.ps1&lt;br&gt;&lt;br&gt;Thx&lt;br&gt;-Sourabh</description></item><item><title>re: Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#761535</link><pubDate>Tue, 19 Sep 2006 07:33:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:761535</guid><dc:creator>PowerShellTeam</dc:creator><description>&amp;gt; Is the full path required to dot source a file? &lt;br&gt;&lt;br&gt;Yes - your startup directory is a function of where you started the shell and can change.&lt;br&gt;&lt;br&gt;Jeffrey Snover [MSFT]&lt;br&gt;Windows PowerShell/Aspen Architect&lt;br&gt;Visit the Windows PowerShell Team blog at: &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/PowerShell"&gt;http://blogs.msdn.com/PowerShell&lt;/a&gt;&lt;br&gt;Visit the Windows PowerShell ScriptCenter at: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#762274</link><pubDate>Tue, 19 Sep 2006 20:04:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:762274</guid><dc:creator>Sourabh</dc:creator><description>Thanks Jeffrey. I am now using &amp;quot;$home\My Documents\PSConfiguration\LibraryTime.ps1&amp;quot; and it works great.</description></item><item><title>RE: calling functions from other scripts</title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#4015852</link><pubDate>Mon, 23 Jul 2007 23:00:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4015852</guid><dc:creator>Latest Newsgroup Posts</dc:creator><description>&lt;p&gt;One way would be to create a library of functions you could load at start up - see this for an example&lt;/p&gt;
</description></item><item><title>re: Useful DateTime functions - LibraryTime.ps1 </title><link>http://blogs.msdn.com/powershell/archive/2006/09/17/Useful-DateTime-functions-LibraryTimeps1-.aspx#6438318</link><pubDate>Tue, 20 Nov 2007 20:31:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6438318</guid><dc:creator>mdexch</dc:creator><description>&lt;p&gt;I used following syntax to Dot in a library script in another script.&lt;/p&gt;
&lt;p&gt;With $MyProdRoot a system env. variable pointing to root install directory of our product.&lt;/p&gt;
&lt;p&gt;. &amp;quot;$env:MyProdRoot\msexch\bin\LibEx07.ps1&amp;quot;&lt;/p&gt;
&lt;p&gt;For some reason following didn't work&lt;/p&gt;
&lt;p&gt;. &amp;quot;$MyProdRoot\msexch\bin\LibEx07.ps1&amp;quot;&lt;/p&gt;
&lt;p&gt;$MyProdRoot won't resolve !&lt;/p&gt;</description></item></channel></rss>