18 04, 2010

Split-Path – used another way

By |2010-04-18T23:23:53+01:00April 18th, 2010|Powershell|0 Comments

Split-Path is a very useful command which allows you to do string manipulation with file paths.  It chops up paths into Parent/Child directory names, file names and can also determine if the path in question is relative or absolute etc.  Check out http://technet.microsoft.com/en-us/library/dd315377.aspx for more details. However, there are times when output from another command is in a format [...]

3 04, 2010

Cleaning up after sending SMTP mail in Powershell

By |2016-12-11T15:25:09+00:00April 3rd, 2010|Powershell|2 Comments

I like exporting and sending the results of my Powershell scripts via SMTP mail.  That obviously require some sort of temporary location to hold my data while I am working on things.  However, I also try to stay away from dumping the temporary contents into TEMP or TMP.  I want to keep my junk separate [...]