File tree Expand file tree Collapse file tree 4 files changed +50
-0
lines changed
Expand file tree Collapse file tree 4 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ @ echo off
2+ echo Adding EZ-Game-Audio to context menu...
3+
4+ :: Check if config.ini exists, create it if not
5+ if not exist config.ini (
6+ echo [Settings] > config.ini
7+ echo AppPath=%~dp0 EZ-Game-Audio.exe >> config.ini
8+ )
9+
10+ :: Read app path from config
11+ for /f " tokens=2 delims==" %%a in ('type config.ini ^ | findstr AppPath') do (
12+ set APPPATH = %%a
13+ )
14+
15+ :: Trim any spaces
16+ set APPPATH = %APPPATH: =%
17+
18+ :: Check if the app exists at the specified path
19+ if not exist " %APPPATH% " (
20+ echo ERROR: EZ-Game-Audio.exe not found at %APPPATH%
21+ echo Please update the path in config.ini
22+ pause
23+ exit /b 1
24+ )
25+
26+ :: Add context menu entries
27+ reg add " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\EZ-Game-Audio" /ve /d " EZ-Game-Audio Convert" /f
28+ reg add " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\EZ-Game-Audio" /v " Icon" /d " %APPPATH% " /f
29+ reg add " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\EZ-Game-Audio\command" /ve /d " \" %APPPATH% \" \" %% 1\" " /f
30+
31+ reg add " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\EZ-Game-Audio" /ve /d " EZ-Game-Audio Convert" /f
32+ reg add " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\EZ-Game-Audio" /v " Icon" /d " %APPPATH% " /f
33+ reg add " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\EZ-Game-Audio\command" /ve /d " \" %APPPATH% \" \" %% V\" " /f
34+
35+ echo Context menu added successfully!
36+ echo You can now right-click on folders to access EZ-Game-Audio.
37+ pause
Original file line number Diff line number Diff line change 1+ [Settings]
2+ AppPath =C:\Users\Jimmy\Downloads\EZ-Game-Audio-1.5.0\EZ-Game-Audio.exe
Original file line number Diff line number Diff line change 1+ [Settings]
2+ AppPath=C:\Users\Jimmy\Downloads\EZ-Game-Audio-1.5.0\EZ-Game-Audio.exe
Original file line number Diff line number Diff line change 1+ @ echo off
2+ echo Removing EZ-Game-Audio from context menu...
3+
4+ :: Remove context menu entries
5+ reg delete " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\EZ-Game-Audio" /f
6+ reg delete " HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\EZ-Game-Audio" /f
7+
8+ echo Context menu entries removed successfully!
9+ pause
You can’t perform that action at this time.
0 commit comments