Option Explicit
Dim sh, fso, base, shortcut, desktop, target
Set sh = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
base = fso.GetParentFolderName(WScript.ScriptFullName)
target = fso.BuildPath(base, "START_FOOTBALL_ANALYTICS.bat")
desktop = sh.SpecialFolders("Desktop")
Set shortcut = sh.CreateShortcut(fso.BuildPath(desktop, "Football Analytics.lnk"))
shortcut.TargetPath = target
shortcut.WorkingDirectory = base
shortcut.Description = "Launch Football Analytics desktop application"
shortcut.IconLocation = sh.ExpandEnvironmentStrings("%SystemRoot%\System32\shell32.dll") & ",13"
shortcut.Save
MsgBox "Football Analytics shortcut created on your Desktop.", vbInformation, "Football Analytics"
