Create Win_Shortcut_Creator2.ps1
This commit is contained in:
parent
870bf842cf
commit
623f35aec7
|
@ -0,0 +1,14 @@
|
|||
param (
|
||||
[string] $name,
|
||||
[string] $url
|
||||
)
|
||||
|
||||
$url = $url
|
||||
$name = $name
|
||||
$Shell = New-Object -ComObject ("WScript.Shell")
|
||||
$ShortCut = $Shell.CreateShortcut("$env:Public\Desktop\$name.url")
|
||||
$ShortCut.TargetPath="$url"
|
||||
$ShortCut.Save()
|
||||
|
||||
|
||||
# arguements: -name {{shortcut name}} -url {{url}}
|
Loading…
Reference in New Issue