@echo off
setlocal
set "HERE=%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$w=New-Object -ComObject WScript.Shell; $l=$w.CreateShortcut([Environment]::GetFolderPath('Desktop')+'\Cadence.lnk'); $l.TargetPath=$env:HERE+'Start Cadence.bat'; $l.WorkingDirectory=$env:HERE; $l.IconLocation=$env:HERE+'cadence.ico'; $l.Description='Cadence - voice to paragraph and prompt'; $l.Save()"
echo.
echo   A "Cadence" icon has been added to your Desktop.
echo   Double-click it any time to start Cadence.
echo.
pause
