Hi There,
I need to check if i have permission to write to a file and if not remove the read-only flag (Windows).
I have figured out how to check if it's writeable:
I'm not sure how I can set the file permissions.
I found something like "file mode" but i'm not sure how to use it on a windows platform...
Anybody able to help?
Thank you,
Ron
Hours of planing can save weeks of coding
I need to check if i have permission to write to a file and if not remove the read-only flag (Windows).
I have figured out how to check if it's writeable:
Code:
set writeable [file writeable $path]
if {!writeable} {
#make writeable
}
#writing stuff to file
I found something like "file mode" but i'm not sure how to use it on a windows platform...
Anybody able to help?
Thank you,
Ron
Hours of planing can save weeks of coding