Skip to content

Commit 1b10c16

Browse files
committed
added bat to add this app to the right click context menu
requires a little rework to add for files as well since this app only looks at folders atm.
1 parent 59539d9 commit 1b10c16

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

src/add_context_mene.bat

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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=%~dp0EZ-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

src/config.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Settings]
2+
AppPath=C:\Users\Jimmy\Downloads\EZ-Game-Audio-1.5.0\EZ-Game-Audio.exe

src/config.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Settings]
2+
AppPath=C:\Users\Jimmy\Downloads\EZ-Game-Audio-1.5.0\EZ-Game-Audio.exe

src/remove_context_menu.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

0 commit comments

Comments
 (0)