Favorite Powershell Scripts

Mock sitemap

This simple script gives us an overview of all pages - we just need to clean up the bin and obj folder listings  - do some simple replaces and turn it into links or a sitemap
It creates a list of all of the filetypes specified into an output text file

Below I have specified on .aspx files but you could do something like .htm,asp,aspx instead to include multiple file types.

Get-ChildItem D:\mydirectory\My.WebApplication -recurse -include *.aspx| ForEach-Object { $_.FullName } > D:\mydirectory\My.WebApplication\output.txt


More Powershell Resources

Comments

Popular posts from this blog

Linq Exclude from separate list

Sorting Ascending and Descending

Linq Query Syntax vs Method Syntax