Updated new-dir.ps1

This commit is contained in:
Markus Fleschutz 2024-05-06 18:05:37 +02:00
parent 598adae9cb
commit fa37a97c92

View File

@ -6,8 +6,8 @@
.PARAMETER path
Specifies the path and filename of the new directory
.EXAMPLE
PS> ./new-dir.ps1 Joe
New directory 'Joe' created.
PS> ./new-dir.ps1 MyCollection
New 📂C:\Temp\MyCollection created.
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -24,7 +24,7 @@ try {
$null = (New-Item -itemType directory -path $path)
$path = Resolve-Path $path
"✔️ New directory 📂$path created."
"✔️ New 📂$path created."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"