Compare commits
2 commits
1521de74cb
...
76a9004e3c
Author | SHA1 | Date | |
---|---|---|---|
Manuel Thalmann | 76a9004e3c | ||
Manuel Thalmann | 92d041c327 |
|
@ -16,11 +16,11 @@ $null = New-Module {
|
|||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
if (-not $Name) {
|
||||
$Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName));
|
||||
}
|
||||
|
||||
Start-Operation {
|
||||
if (-not $Name) {
|
||||
$Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName));
|
||||
}
|
||||
|
||||
if ($null -ne $Name) {
|
||||
$Name = "``$Name``";
|
||||
} else {
|
||||
|
|
|
@ -21,7 +21,7 @@ function Remove-DesktopIcon {
|
|||
|
||||
$path = "Desktop/$Pattern";
|
||||
|
||||
foreach ($userDir in @($(~), $env:PUBLIC, "$env:SystemDrive/Users/Default")) {
|
||||
foreach ($userDir in @("~", $env:PUBLIC, "$env:SystemDrive/Users/Default")) {
|
||||
$fullName = "$userDir/$path";
|
||||
|
||||
if (Test-Path -PathType Leaf $fullName) {
|
||||
|
|
Loading…
Reference in a new issue