Avatar of MisUszatek
Flag 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.
PowershellWindows 7

Avatar of undefined
Last Comment

8/22/2022 - Mon

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


"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.


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Exactly what I was looking for! Thanks!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck