Feb 5, 2012

batch file with command line arguments

to create batch file (j.bat),
echo off
javac %1.java
echo run?
pause
java %1

to run the batch file,
j calc
(%1 = calc)

No comments:

Post a Comment