basically I want to know how to make a directory, write a notepad file and save it as a java file, compile it and run it all in one batch file.
This is the best I could come up with:
mkdir c:\csc201
cd\c:\csc201
c:\winnt\notepad.exe HelloWorld.java
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("HelloWorld!");
}
}
javac HelloWorld.java
java HelloWorld
I looked all over the place but, cannot find any answers.


Reply With Quote


Bookmarks