Export to CSV a list of files in path

Before you begin

Steps to take

  1. Copy the following
    Get-ChildItem -Path "C:\Program Files\WebChrome\" -Recurse | Export-Csv .\desktop\results.csv 
  2. Update the path 
  3. Remove the -Recurse option if you wish to export only files in the path and not recurse into sub-folders
  4. Update the export file name and file path
  5. Press enter
      The files are collected and expored to CSV
    The exported list of files looks as follows when viewed in Excel

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Please sign in to leave a comment.