I have a question, why in the above example the function (is ignored) doesn't work? I'm looking for a way to set the Read-Only attribute for a folders and a files. Any ideas, an example is also welcome.Sub SetReadOnly(ApplyFolder As String, ApplyFileName As String) 'ignore
Dim r As Reflector
r.Target = r.CreateObject2("java.io.File", Array As String(ApplyFolder, ApplyFileName), Array As String("java.lang.String", "java.lang.String"))
r.RunMethod("setReadOnly")
End Sub
Thanks.