2005-11-24

Run Groovy in Windows Exploer directly

Groovy is not directly excuted by windows expoler in the current release, helped by ‘groovy.bat’ in cmd window. Using the following registry file, you can open or run groovy script conviently.

Note: you must adjust the groovy path in the following registry file, according with your enviroment.

-------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.groovy]
@="groovyFile"

[HKEY_CLASSES_ROOT\.groovy\ShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOT\groovyFile]
@="Groovy Program"

[HKEY_CLASSES_ROOT\groovyFile\Shell]
@="open"

[HKEY_CLASSES_ROOT\groovyFile\Shell\open]

[HKEY_CLASSES_ROOT\groovyFile\Shell\open\command]
@="\"D:\\java\\groovy-1.0-jsr-03\\bin\\groovy.bat\" \"%1\" %*"

没有评论: