新建cmd.txt文件 java
將下面內容拷入,另存爲cmd.reg,雙擊cmd.reg,就OK了。 shell
cmd.reg eclipse
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\DOS] @="DOS 在這裏" [HKEY_CLASSES_ROOT\Directory\shell\DOS\Command] @="cmd.exe /k \"cd %L\"" [HKEY_CLASSES_ROOT\Directory\shell\MVN_IN] @="MVN INSTALL" [HKEY_CLASSES_ROOT\Directory\shell\MVN_IN\Command] @="cmd.exe /k \"cd %L && mvn clean install -Dmaven.test.skip=true\"" [HKEY_CLASSES_ROOT\Directory\shell\MVN_EC] @="MVN ECLIPSE" [HKEY_CLASSES_ROOT\Directory\shell\MVN_EC\Command] @="cmd.exe /k \"cd %L && mvn eclipse:clean eclipse:eclipse -DdownloadSources=true\""