返回首页 - Notes - 2014

Windows 下 bat 文件的使用方法


常用工具示例

composer.bat

@ECHO OFF
SET BIN_TARGET=%~dp0/composer.phar
php "%BIN_TARGET%" %*

abcl.bat

@ECHO OFF
SET BIN_TARGET=%~dp0/abcl.jar
java -jar "%BIN_TARGET%" %*

clojure.bat

@ECHO OFF
SET BIN_TARGET=%~dp0/clojure-1.6.0.jar
java -cp "%BIN_TARGET%" clojure.main %*

quicklisp.bat

@ECHO OFF
SET BIN_TARGET=%~dp0/quicklisp.lisp
clisp -i "%BIN_TARGET%" %*

scheme.bat

@ECHO OFF
mit-scheme.exe --library "D:/Ruchee/MIT-Scheme/lib"

rebar.bat

@ECHO OFF
SET BIN_TARGET=%~dp0/rebar
escript "%BIN_TARGET%" %*

boot.bat

@ECHO OFF
SET BIN_TARGET=%~dp0/boot-1.0.2-standalone.jar
java -jar "%BIN_TARGET%" %*

date : 2014-08-13、2014-11-21