Start a conversation

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
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Warren Hall

  2. Posted
  3. Updated

Comments