Showing archive results for July 2014

Jul 16, 2014
Post comments count0
Post likes count1

PowerTip: Create Empty String with PowerShell

Doctor Scripto

Summary: Learn how to create an empty string by using Windows PowerShell.  How can I use Windows PowerShell to create an empty string?  Use the static Empty field from the System.String class: [string]::Empty

Scripting Guy!Windows PowerShellPowerTip
Jul 16, 2014
Post comments count0
Post likes count0

Join Me in a Few String Methods Using PowerShell

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using the String class of the Join method in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. This morning while I was eating breakfast and reviewing my email on my Surface 2 Pro, I noticed that I have meetings all afternoon. Luckily, I was up early, and so I can get my w...

Scripting Guy!Windows PowerShellscripting techniques
Jul 15, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Get Hash Code of Tuple

Doctor Scripto

Summary: Learn how to get the hash code of a tuple by using Windows PowerShell.  How can I use Windows PowerShell to get the hash code for a tuple?  Call the GetHashCode method from your Tuple object—for example,             this command creates a tuple and obtains the hash code of it: $t...

Scripting Guy!Windows PowerShellPowerTip
Jul 15, 2014
Post comments count0
Post likes count0

Keep Your Hands Clean: Use PowerShell to Glue Strings Together

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about several approaches for concatenating strings by using Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. This weekend, I was speaking about blogging and technical writing at the South Carolina Writers Workshop in Rock Hill, South Carolina. One of the cool things is a couple of p...

Scripting Guy!Windows PowerShellscripting techniques
Jul 14, 2014
Post comments count0
Post likes count0

PowerTip: Remove First Two Letters of String

Doctor Scripto

Summary: Learn how to use Windows PowerShell remove the first two letters from a string.  How can I use Windows PowerShell to remove the first two letters from a string?  Use the SubString method, for example: $a = “String” $a.substring(2) 

Scripting Guy!Windows PowerShellPowerTip