Get full path of the files in PowerShell

后端 未结 14 2206
挽巷
挽巷 2020-12-02 06:21

I need to get all the files including the files present in the subfolders that belong to a particular type.

I am doing something like this, using Get-ChildItem:

14条回答
  •  难免孤独
    2020-12-02 07:14

    I am using below script to extact all folder path:

    Get-ChildItem -path "C:\" -Recurse -Directory -Force -ErrorAction SilentlyContinue | Select-Object FullName | Out-File "Folder_List.csv"
    

    Full folder path is not coming. After 113 characters, is coming:

    Example - C:\ProgramData\Microsoft\Windows\DeviceMetadataCache\dmrccache\en-US\ec4d5fdd-aa12-400f-83e2-7b0ea6023eb7\Windows...
    

提交回复
热议问题