But it doesn’t show you the hierarchical levels like the Method 1 will. csv file which lists all files and sub-folders in your target directory. Get-ChildItem -Recurse 'd:\demo' | Select-Object FullName, name | Export-Csv -path d:\list.csv -noTypeInfo Make sure you replace “ d:\demo” with the folder which you want to export the directory structure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |