I have a jar file at this path C:\mgnfcnt.jar . I added an option to right click to fire this jar when user clicked this option. And also I want to send the path of file whick right clicked to this jar .

Added a key ko HKEY_CLASSES_ROOT and none of these command values are working.

cmd \k java -jar test.jar %1
java -jar test.jar %1

Can anyone help me?

Thanks

有帮助吗?

解决方案

try this.

java -jar "C:\test.jar" "%1"

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top