KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > RenameTo


1 import jcifs.smb.SmbFile;
2
3 public class RenameTo {
4
5     public static void main( String JavaDoc argv[] ) throws Exception JavaDoc {
6
7         SmbFile from = new SmbFile( argv[0] );
8         SmbFile to = new SmbFile( argv[1] );
9         from.renameTo( to );
10     }
11 }
12
13
Popular Tags