diff --git a/scripts_wip/Win_Shortcut_Creator2.ps1 b/scripts_wip/Win_Shortcut_Creator2.ps1 new file mode 100644 index 00000000..72f3d4c6 --- /dev/null +++ b/scripts_wip/Win_Shortcut_Creator2.ps1 @@ -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}}