Submitted By: Kent Finkle

Uses Windows PowerShell to list the files in a folder.

PowerShell
Edit|Remove
#  Script name:    GetFiles.ps1
#  Created on:     2006-09-30
#  Author:         Kent Finkle
#  Purpose:        List the files in a Directory with PowerShell.

$fileEntries = [IO.Directory]::GetFiles("c:\scripts");
foreach($fileName in $fileEntries)
{
    [Console]::WriteLine($fileName);
}