1 import jcifs.smb.*; 2 3 public class SetAttrs { 4 5 public static void main( String argv[] ) throws Exception { 6 if( argv.length < 2 ) { 7 System.err.println( "usage: SetAttrs <smburl> <hexval>" ); 8 return; 9 } 10 11 SmbFile f = new SmbFile( argv[0] ); 12 SmbFileInputStream in = new SmbFileInputStream( f ); 13 int attrs = Integer.parseInt( argv[1], 16 ); 14 15 f.setAttributes( attrs ); 16 } 17 } 18 19 | Popular Tags |