check file Atribute

Discuss RoboTask here
Post Reply
jonjon
Posts: 17
Joined: Sun Nov 05, 2006 10:14 pm
Location: Sweden

check file Atribute

Post 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
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

check file Atribute

Post 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.
jonjon
Posts: 17
Joined: Sun Nov 05, 2006 10:14 pm
Location: Sweden

check file Atribute

Post by jonjon »

Hi Oleg
 
Yes pls that would be very kind of you cold help me with that :)
 
Best regards!
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

check file Atribute

Post by Oleg »

See two examples:
Check readonly Attribute.tsk
Clear readonly Attribute.tsk

First example uses "Evaluate" action. I think that it's simpler.
jonjon
Posts: 17
Joined: Sun Nov 05, 2006 10:14 pm
Location: Sweden

check file Atribute

Post by jonjon »

Thanks mate!!! Exatcly what I needed. I have implemented it and it seem to work perfektly!!
 
have a nice weekend!!
Post Reply