Page 1 of 1

check file Atribute

Posted: Wed May 26, 2010 9:41 pm
by jonjon
Hi
Is it poossible to check if a file is writeprotected and then change this file atribute so the file is not writeprotected anymore?
 
Thanks in advance
 
Johan

check file Atribute

Posted: Wed May 26, 2010 11:48 pm
by Oleg
There is no direct actions as yet.
But you can use Basic scripts.
see GetAttr and SetAttr functions in BASIC help.

Let me know if you need help for writing such scripts.

check file Atribute

Posted: Thu May 27, 2010 9:30 am
by jonjon
Hi Oleg
 
Yes pls that would be very kind of you cold help me with that :)
 
Best regards!

check file Atribute

Posted: Thu May 27, 2010 10:52 am
by Oleg
See two examples:
Check readonly Attribute.tsk
Clear readonly Attribute.tsk

First example uses "Evaluate" action. I think that it's simpler.

check file Atribute

Posted: Fri May 28, 2010 1:49 am
by jonjon
Thanks mate!!! Exatcly what I needed. I have implemented it and it seem to work perfektly!!
 
have a nice weekend!!