Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: Couple of functions to Create and Remove Folders

$
0
0
Hey Sue,

I've taken these and integrated them into the latest source - I've made a few minor changes though:
  • Renamed Create-Folder to New-Folder to follow PowerShell verb naming scheme
  • Fixed mandatory -ContinueOnError parameter on New-Folder
  • Removed -Recurse parameter on Remove-Folder. Done by default. If a folder isn't empty and you didn't specify -Recurse, the whole script would hang waiting for user input
  • Switched from Trap to Try / Catch on both to be in line with new exception handling across all functions
Thanks for your work, credits in the changelog :)

Dan

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>