From 623f35aec761ac5558cf705d7bf873198c267d3d Mon Sep 17 00:00:00 2001 From: agit8or <62771664+agit8or@users.noreply.github.com> Date: Tue, 18 May 2021 13:05:46 -0400 Subject: [PATCH] Create Win_Shortcut_Creator2.ps1 --- scripts_wip/Win_Shortcut_Creator2.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts_wip/Win_Shortcut_Creator2.ps1 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}}