jcifs_1.3.3.examples.SetAttrs Maven / Gradle / Ivy
import jcifs.smb.*;
public class SetAttrs {
public static void main( String argv[] ) throws Exception {
if( argv.length < 2 ) {
System.err.println( "usage: SetAttrs " );
return;
}
SmbFile f = new SmbFile( argv[0] );
SmbFileInputStream in = new SmbFileInputStream( f );
int attrs = Integer.parseInt( argv[1], 16 );
f.setAttributes( attrs );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy