How to Rename a jar file from java program ?or any other way from Command promt? -
i working on application downloading jars web server rmtcmark.jar,rmproduct.jar,rmlatency.jar,all rm named jars.these jars getting stored in directory .but these rm named files not workable me,
i want file name i.e rm should removed name of file instance if file name rmtcmark.jar ---->tcmark.jar rmproduct.jar---->product.jar,in way
is there way out in java rename such jar files?
also ,my second question ,there similar files named rtpostmark.jar,rtlatency getting downloaded web server ,all of size 1 kb,
i want rt named jars should deleted directory getting stored.
if not possible java,cn command promt ??
you can rename file using java
refer links below
http://www.mkyong.com/java/how-to-rename-file-in-java/
the logic should work parse files , if file starting name "rm" new file name, have exclude name rm , create file object suggested in links