PowerTip: Create Empty String with PowerShell

Dr Scripto

Summary: Learn how to create an empty string by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create an empty string?

Hey, Scripting Guy! Answer Use the static Empty field from the System.String class:

[string]::Empty

0 comments

Comments are closed. Login to edit/delete your existing comments