Untitled

 avatar
unknown
plain_text
2 years ago
184 B
4
Indexable
$dir = "C:\myfiles\"
$files = Get-ChildItem -Path $dir -File
for($i=0; $i -lt $files.count; $i++){
$file = $files[$i]
$fileName = $file.Name
Write-Host "File Name: $fileName"
}
Editor is loading...