mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Updated the manuals
This commit is contained in:
@ -15,6 +15,7 @@ Parameters
|
||||
Position? 1
|
||||
Default value
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
-target <String>
|
||||
@ -24,6 +25,7 @@ Parameters
|
||||
Position? 2
|
||||
Default value
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
[<CommonParameters>]
|
||||
@ -75,7 +77,7 @@ try {
|
||||
if ($target -eq "" ) { $target = Read-Host "Enter path to target" }
|
||||
|
||||
New-Item -path "$symlink" -itemType SymbolicLink -value "$target"
|
||||
if ($lastExitCode -ne "0") { throw "Command 'New-Item' has failed" }
|
||||
if ($lastExitCode -ne 0) { throw "Command 'New-Item' has failed" }
|
||||
|
||||
"✅ Created new symlink '$symlink' linking to: $target"
|
||||
exit 0 # success
|
||||
@ -85,4 +87,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:23)*
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:56)*
|
||||
|
Reference in New Issue
Block a user