VBScript-to-Windows PowerShell Conversion Guide Cmdlets and Add-ons Converting Dictionary Object to Windows PowerShell Commands Converting VBScript Commands to Windows PowerShell Commands Converting VBScript's Abs Function Converting VBScript's Addition Operator Converting VBScript's And Operator Converti...
(Get-Item c:\scripts\test.txt).extension Note that, unlike GetExtensionName, the Extension property includes the dot in the name. In other words, the preceding command will return.txt, not simplytxt. See conversions of other FileSystemObject methods and properties. Return to the VBScript t...