some automation scripts are all about working with type of specific file or multiple file types .
how can we find specific files ,there’s a cmdlet will help us with that –
Get-ChildItem
lets say we would like to find in a folder only EXE files ..we’ll need to filter it by –
1 |
Get-ChildItem -Path C:\Windows -Filter *.exe | Select Name |
can you tell if there’s any difference with the Dir Command ?
try it ..
1 |
Dir -Path C:\Windows -Filter *.exe | Select Name |
(Visited 9,691 times, 1 visits today)