web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

PowerShell Snippets: Output list of folders and sub-folders

Ian Grieve Profile Picture Ian Grieve 22,784

PowerShellThis post is part of the series on PowerShell Snippets.

The following PowerShell command will export a list of folders and sub-folders from the specified location (the first highlighted section is the starting folder and the second the output path for the CS file):

Get-ChildItem -Path \\nas3\public\movies -Recurse -Directory -ErrorAction SilentlyContinue | Select-Object FullName | Export-CSV c:\temp\export.txt

Read original post PowerShell Snippets: Output list of folders and sub-folders at azurecurve|Ramblings of a Dynamics GP Consultant


This was originally posted here.

Comments

*This post is locked for comments