file attributes
how can i access to file attributes?
What are you talking aabbbooouutttt?
> how can i access to file attributes?file->open.Done Simple.
> in javaOoooh, why didn't you say so?
sorry i am speaking english a little
> sorry i am speaking english a littleIt's ok, I was actually just messing with you. You need to supply a lot more details if you want any meaningful help. What attributes? What platform?
i want to make a program which is control the file or folder attributes(for example read only,hidden,etc). i hope so its Enough :(
Check out the File class: http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.htmlThere are methods to setReadOnly() and setLastModified(). Other things are most likely going to depend on the os the code's running on.
i know this class but this is not enough for my program. i made read only but i did not make a hidden. i did not connect between the java and os
> i know this class but this is not enough for my
> program. i made read only but i did not make a
> hidden. i did not connect between the java and os
The 1.6 version of File has a few more methods, but I don't think it covers everything you want: http://java.sun.com/javase/6/docs/api/java/io/File.html
Sorry, that's really the limit of my knowledge on this subject. Hopefully someone else knows more.
it s ok . thank you very much for your helps.
how can i hide a folder in java program
File has an isHidden method: [url= http://java.sun.com/javase/6/docs/api/java/io/File.html#isHidden()] http://java.sun.com/javase/6/docs/api/java/io/File.html#isHidden()[/url]If you read that API entry it will give you a clue why there is no setHidden :-(
i want to set hide but it is only return a value(true or false)
> i want to set hide but it is only return a value(true or false)That's the difference between get and set. I'm pointing out *why* File doesn't help you. Sorry.
File, at least, does not have the functionality.
thanks..my english a little. and sometimes i dont understand but i understood now :)