Rename to new-shortcut.ps1 and new-symlink.ps1

This commit is contained in:
Markus Fleschutz
2021-08-30 12:26:15 +02:00
parent ec9253f38a
commit 3b73961014
4 changed files with 11 additions and 11 deletions

View File

@ -1,10 +1,10 @@
<#
.SYNOPSIS
create-shortcut.ps1 [<shortcut>] [<target>] [<description>]
new-shortcut.ps1 [<shortcut>] [<target>] [<description>]
.DESCRIPTION
Creates a new shortcut file.
.EXAMPLE
PS> .\create-shortcut.ps1 C:\Temp\HDD C:\
PS> .\new-shortcut.ps1 C:\Temp\HDD C:\
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
@ -26,7 +26,7 @@ try {
$sc.Description = "$description"
$sc.save()
"✔️ created shortcut $shortcut$target"
"✔️ created new shortcut $shortcut$target"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,10 +1,10 @@
<#
.SYNOPSIS
create-symlink.ps1 [<symlink>] [<target>]
new-symlink.ps1 [<symlink>] [<target>]
.DESCRIPTION
Creates a symbolic link file.
Creates a new symbolic link file.
.EXAMPLE
PS> .\create-symlink.ps1 C:\Temp\HDD C:\
PS> .\new-symlink.ps1 C:\Temp\HDD C:\
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
@ -19,7 +19,7 @@ try {
new-item -path "$symlink" -itemType SymbolicLink -Value "$target"
"✔️ created symlink $symlink$target"
"✔️ created new symlink $symlink$target"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"