I first thought "This is no batch problem.", too.
But i haven't found any way to edit the context menue of the file types htm and html.
Then i tried to edit the registry ("HKEY_CLASSES_ROOT\htmlfile\shell\open\command\(Standard)" := "C:\...\javaw.exe -jar "...\Arach..."):
It failed (seems like if win10 tries to open the htm(l) file tye using javaw.exe, ignoring the command line options)!
(If i remember right, XP has no problems using such opening commands... and it also supports much easier editing... why did MS change that - or did i miss any new development?!.)
Same happens if one uses a Shortcut with the above target, and choose this shortcut as the default app to open this filetype8s) with:
It is a liitle bit irritating, that the shortcut itself works.
The only way i found, that works is to create this batch file ("Arachnophilia.bat)", and choose this as the default app to open with:
Code: Select all
start "Starting Arachnophilia.jar '%~1'" /d "C:\Program Files (x86)\Arachnophilia" "C:\Program Files\Java\jre1.8.0_101\bin\javaw.exe" -jar "C:\Program Files (x86)\Arachnophilia\Arachnophilia.jar" "%~1"
Notes:
Jar files are no executables (only zip files with another file extension, and the manifest file added first) and are executed using "java -jar jarfile" or "javaw -jar jarfile" command.
I've placed this batch where the jar file is located ("C:\Program Files (x86)\Arachnophilia").
I've also used the default path to "javaw.exe"; if you have installed java to another path (like me) then you have to change it.
penpen
Edit: Added "/d ...".
Edit 2: Changed the first %1 to '%~1' and the second one to "%~1".