What i have been trying to do is to make a jar file duplicate itself into a different file location using only java code.
Asked
Active
Viewed 128 times
-4
-
1can you just use a shell command to 'copy' the jar file to a new name? what operating system? how did you want to do this? what have you tried so far? – matias elgart Nov 14 '16 at 02:55
-
I dont know what a shell command is. Windows. Turn my jar Screen.jar and make a duplicate of it and name it Screen2.jar. I have tried very little due to the fact that there isnt much on this question anywhere. – Flompy Doo Nov 14 '16 at 03:03
-
1Have a look at https://docs.oracle.com/javase/tutorial/essential/io/copy.html – GOXR3PLUS Nov 14 '16 at 03:33
-
Also check here : http://www.journaldev.com/861/java-copy-file :) – GOXR3PLUS Nov 14 '16 at 03:34
-
Possible duplicate of [Standard concise way to copy a file in Java?](http://stackoverflow.com/questions/106770/standard-concise-way-to-copy-a-file-in-java) – fabian Nov 14 '16 at 17:57
1 Answers
0
In Windows all you have to do is right click on the file, choose "copy." Next, right click in the folder you want to place the copy, and choose "paste."
SedJ601
- 10,977
- 3
- 40
- 54