Access the particular file properties
PS C:\Users\HP> $file = get-childItem C:\Users\HP\OneDrive\Desktop\pro1.txt PS C:\Users\HP> $file.name pro1.txt PS C:\Users\HP> $file.extension .txt PS C:\Users\HP> $file.length 389 PS C:\Users\HP> $file.basename pro1
How to find the file properties using powershell
PowerShell is a modern command shell that includes the best features of different shells . Unlike the other shells which only accept and return the text but in PowerShell it is different it returns the object in the .NET objects. In this article we will find out certain commands to find the file properties using PowerShell.