Can I set file as read only?

AndyP smudge.andy at googlemail.com
Mon Aug 22 03:22:05 EDT 2011


HI Bill,

For Windows use shell, example below:

set the hideconsolewindows to true
get shell("attrib" && quote & myFile & quote && "+r") // read only 

to make writtable again

set the hideconsolewindows to true
get shell("attrib" && quote & myFile & quote && "-r")

Of course you can use "+r +s +h" attributes as well, read only, system,
hidden.



-----
Andy Piddock


My software never has bugs. It just develops random features.
PointandSee is a FREE simple but full featured under cursor colour picker / finder.
http://www.pointandsee.co.uk - made with LiveCode (v1.3.1 released 22/03/2011)
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Can-I-set-file-as-read-only-tp3759098p3759473.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list