Refer to the snapshot below for more details. In the powershell window, type the following command Write-Host ( | measure).Countįor example, if we want to cunt the file within the folder test that is located in the Desktop folder, we have to specify the following, Write-Host (C:\Users\User1\Desktop\Test | measure).Count Open Run Window ( Windows r) and type powershell and press Enter. In order to find the count of the specific file type in a folder, we give the command, dir *.įor Example, if we want to find the total number of Pdf files in the Test folder we say, dir *.pdf
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |