I\'m trying to write a very simple PowerShell script to give me the total number of items (both files and folders) in a given folder (c:\\MyFolder). Here\'s wh
c:\\MyFolder
In powershell you can to use severals commands, for looking for this commands digit: Get-Alias;
Get-Alias
So the cammands the can to use are:
write-host (ls MydirectoryName).Count
or
write-host (dir MydirectoryName).Count
write-host (Get-ChildrenItem MydirectoryName).Count