ComfyUI/create_shortcut.ps1
2025-11-11 08:40:53 -06:00

14 lines
437 B
PowerShell

$WshShell = New-Object -ComObject WScript.Shell
$DesktopPath = [Environment]::GetFolderPath('Desktop')
$ShortcutPath = Join-Path $DesktopPath "ComfyUI.lnk"
$Shortcut = $WshShell.CreateShortcut($ShortcutPath)
$Shortcut.TargetPath = "C:\Repos\ComfyUI\run_comfyui.bat"
$Shortcut.WorkingDirectory = "C:\Repos\ComfyUI"
$Shortcut.Description = "Run ComfyUI from repository"
$Shortcut.Save()
Write-Host "Shortcut created at: $ShortcutPath"