hello everyone, my name is Danny and Im new on powershellcommunity.org and I was wondering if there was a way to get get-childItem to show its output to the screen while searching for files with a certain extension. Here's my code...
# This file was created with Powershell version 1.0 in mind
# On Monday, April 21, 2008 At: 1:32:15 PM
# Created By: Danny Ocean
# Preprocessor Directive(s)
# Variables
$strCurrentTime = Get-Date -Format "hh:mm:ss"
cls
write-host "Process started at: $strCurrentTime"
write-host "What directory would like to start searching for the files?"
$strStartDir = read-host
write-host "What file extension are we looking for mister?"
$strFileExt = read-host
write-host "Name and location of the output file"
$strOutFile = read-host
write-host "Currently Processing"
$Dir = get-childitem $strStartDir -include *strFileExt -recurse
write-host "Finished Processing"
# $Dir |get-member
$List = $Dir
$List |ft fullname |out-file $strOutFile
# List | format-table name
And no, the -verbose parameter doesn't work, any help would be appreciated, thx in advance