Link to home
Start Free TrialLog in
Avatar of MisUszatek
MisUszatekFlag for United States of America

asked on

Powershell script to export a list of file names and titles

I have a folder with a lot of files (Windows 7). I need to get the files as a txt/csv list with two columns: name & title. How this can be done with Powershell? Or is there any other better way of doing it?

I will increase points to 500 if provided with a fully functioning PS script.
Avatar of coraxal
Flag of United States of America image

Not sure what you mean by "title", but this will give you the file name and the fullname for each file in a folder and export the results to a csv file
Get-ChildItem C:\targetfolder\*.* | Select Name,FullName | Export-Csv C:\temp\files.csv -NoTypeInformation

Open in new window

Avatar of MisUszatek


"Title" means the Title of the MS Office document (PowerPoint in this case). I changed the FullName to Title but it didn't work. See attached screenshot. It is probably some MS Office document property.

User generated image
Avatar of Qlemo
Flag of Germany image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Exactly what I was looking for! Thanks!