Added comment-based help

This commit is contained in:
Markus Fleschutz
2020-12-29 14:14:21 +00:00
parent 3b83d94809
commit 66bc6a7699
85 changed files with 687 additions and 725 deletions

View File

@ -1,16 +1,16 @@
#!/snap/bin/powershell
# Syntax: ./list-files.ps1 [<folder>]
# Description: lists all files in the given <folder> and also in every subfolder
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
<#
.SYNTAX ./list-files.ps1 [<folder>]
.DESCRIPTION lists all files in the given folder and also in every subfolder
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
param([string]$Folder)
try {
if ($Folder -eq "" ) {
[String]$Folder = read-host "Enter path to folder"
[string]$Folder = read-host "Enter path to folder"
}
Get-ChildItem -path $Folder -recurse | select FullName
exit 0