Say I have an XML file.
<!-- File: "java.xml" -->
<java>
<classpath>C:\path\to\my\classes\</classpath>
</java>
or
// File: "java.txt"
C:\path\to\my\classes\
C:\path\to\something\else\
C:\an\other\command\line\argument\
Is it possible to have a batch file to read a XML file or even something as simple as just an ordered list of strings in a text file separated by new lines \n
. Then call a global command line tool such as java
and pass it arguments found in the example file java.xml
.
C:\Users>java -classpath C:\path\to\my\classes\