No try this version
UnRen-forall-mod.zip then but it in let's say to drive D:\unren
Then make sure your path looks like this D:\unren\UnRen-forall.bat
Then change my above reg file to something like this.
[HKEY_CLASSES_ROOT\Directory\Background\shell\Run Batch script]
@="&Run Batch script"
"Icon"="%SystemRoot%\\System32\\shell32.dll,71"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Run Batch script\command]
@="D:\\unren\\UnRen-forall.bat \"%V\""
This reg file works with out changing stuff in the unren-forall.bat on windows 11 if you us my reg file press on more options then you see run batch script you change that by changing this line.
[HKEY_CLASSES_ROOT\Directory\Background\shell\Run Batch script\command]
Now if you right click inside of are renpy game folder next to the exe press more options then you see in the right click menu Run batch script then my modet UnRen-forall.bat opens up now press enter and you ready to go
You dont need to select are folder with the unRen-forall.bat because of this .
if exist "game" if exist "renpy" (
set "renpydir=%cd%\renpy\"
set "gamedir=%cd%\game\"
that check makes sure that if you next to the game.exe it founds the renpy folder and the game folder.
Look at this screen.
to see what i am talking about .
On the screen above just hit enter and the UnRen-forall.bat things it is inside of the folder next to the exe but in this case its even good that it is not next to the exe because this game crashes if it founds are *.bat file next to it.
As you can see the *.bat file is not in the folder and it works with the %V the 1 in this case is to skip the Enter path to the game switch in this case but you can hit enter because your are in this place even with out that the file is ther.
if you whant it complexer like with powershell
HKEY_CLASSES_ROOT\Directory\ContextMenus\UnRen\UnRenforall\command then the %1 makes even more sense