Files
CODEtomaste/Tool_Scripts/Whisper_Transcript/create_shortcut.bat

21 lines
792 B
Batchfile
Raw Normal View History

@echo off
:: Create Desktop Shortcut for Voice Recorder
:: Run this script once to create the shortcut
set "SCRIPT_DIR=%~dp0"
set "BAT_PATH=%SCRIPT_DIR%VoiceRecorder.bat"
set "ICO_PATH=%SCRIPT_DIR%voice_recorder.ico"
:: Use PowerShell to create shortcut
powershell -ExecutionPolicy Bypass -Command ^
"$ws = New-Object -ComObject WScript.Shell; ^
$shortcut = $ws.CreateShortcut([Environment]::GetFolderPath('Desktop') + '\Voice Recorder.lnk'); ^
$shortcut.TargetPath = '%BAT_PATH%'; ^
$shortcut.WorkingDirectory = '%SCRIPT_DIR%'; ^
$shortcut.IconLocation = '%ICO_PATH%'; ^
$shortcut.Description = 'Voice Recorder - Record and transcribe voice memos to Obsidian'; ^
$shortcut.Save(); ^
Write-Host 'Desktop shortcut created successfully!' -ForegroundColor Green"
pause