mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 04:31:39 +02:00
Rename to new-shortcut.ps1 and new-symlink.ps1
This commit is contained in:
@ -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])"
|
@ -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])"
|
Reference in New Issue
Block a user