-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_MushView_shortcut.bat
More file actions
45 lines (36 loc) · 1.97 KB
/
Copy pathcreate_MushView_shortcut.bat
File metadata and controls
45 lines (36 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM MushLog Desktop Shortcut Creator for Windows
echo Creating MushLog desktop shortcuts...
REM Get the current directory
set current_dir=%cd%
set desktop_dir=%USERPROFILE%\Desktop
REM Check if we're in the right directory
if not exist "run_mushlog.py" (
echo ❌ Error: Please run this script from the MushLog-v1.3 directory
echo (where run_mushlog.py and run_mushview.py are located)
pause
exit /b 1
)
if not exist "run_mushview.py" (
echo ❌ Error: Please run this script from the MushLog-v1.3 directory
echo (where run_mushlog.py and run_mushview.py are located)
pause
exit /b 1
)
echo Creating MushLog shortcut...
REM Create MushLog shortcut using PowerShell
powershell -Command "& {$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%desktop_dir%\MushLog.lnk'); $Shortcut.TargetPath = 'python'; $Shortcut.Arguments = '\"%current_dir%\run_mushlog.py\"'; $Shortcut.WorkingDirectory = '%current_dir%'; $Shortcut.IconLocation = '%current_dir%\resources\mushroom_icon.ico'; $Shortcut.Description = 'Mushroom Collection Data Entry'; $Shortcut.Save()}"
echo Creating MushView shortcut...
REM Create MushView shortcut using PowerShell
powershell -Command "& {$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%desktop_dir%\MushView.lnk'); $Shortcut.TargetPath = 'python'; $Shortcut.Arguments = '\"%current_dir%\run_mushview.py\"'; $Shortcut.WorkingDirectory = '%current_dir%'; $Shortcut.IconLocation = '%current_dir%\resources\blue_mush.ico'; $Shortcut.Description = 'Mushroom Specimen Browser'; $Shortcut.Save()}"
echo ✅ Desktop shortcuts created successfully!
echo.
echo Shortcuts created on desktop:
echo 📄 MushLog.lnk - Data entry application
echo 📄 MushView.lnk - Specimen browser
echo.
echo You can now double-click these shortcuts to run the applications.
echo.
echo Note: If the shortcuts don't work, make sure you've run the install script first:
echo install.bat
pause