File Attribute

BlitzMax Forums/BlitzMax Programming/File Attribute

zambani(Posted 2008) [#1]
Is there a way to read and set the file attribute to somthing like read-only or hidden?

Thanks in advance.


plash(Posted 2008) [#2]
It should be in the windows api..
Search msdn for SetFileAttributes(), msdn seems to be loading slow for me so I can't show you what you need.


plash(Posted 2008) [#3]
Here you go! http://msdn.microsoft.com/en-us/library/aa365535(VS.85).aspx
All those 0x#### values are hex, I think you write them like this in Max: $#### (replace 0x with $)


zambani(Posted 2008) [#4]
Thanks