- Joined
- Mar 25, 2008
- Messages
- 71
- Reaction score
- 19
Tired of compiling and then having to copy the dist file into each directory? I'm not sure if this has been released or not, it wasn't in the library. Anyways, it's a simple bat file to copy your jar file into each java directory.
Save this as copy.bat
For me on my computer the path for the .jar file is
C:\Documents and Settings\Chris\Desktop\WrittenMS\dist\writtenms.jar
On my vds it's
C:\Users\Administrator\Desktop\WrittenMS\dist\writtenms.jar
Just some friendly examples. Don't forget the quotations! they're needed if you have any type of spaces in your directory
Edit: the php tag was taking the backslashes out of the second series of copy commands, I don't know why. Changed it to code.
Save this as copy.bat
Code:
xcopy /y "directory of your netbeans compiling folder(where the .jar is)" "directory of your source's dist folder(where the .jar goes)"
pause
C:\Documents and Settings\Chris\Desktop\WrittenMS\dist\writtenms.jar
On my vds it's
C:\Users\Administrator\Desktop\WrittenMS\dist\writtenms.jar
Just some friendly examples. Don't forget the quotations! they're needed if you have any type of spaces in your directory
Edit: the php tag was taking the backslashes out of the second series of copy commands, I don't know why. Changed it to code.
Last edited: