I'm trying to pull the names of files from a directory into a csv file with the following:
Get-ChildItem -name | % { [IO.Path]::GetFileNameWithoutExtension($_) }
| Export-Csv users.csv
Using '% { [IO.Path]::GetFileNameWithoutExtension($_) }'
to display the files with out extensions.
All I get is the following in return:
>>
Length
12
10
13
9
14
18
14
11
Any Ideas?