Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change File permission 1

Status
Not open for further replies.

reggler

Programmer
Nov 13, 2008
63
CA
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:
Code:
set writeable [file writeable $path]
        if {!writeable} {
	     #make writeable   
        }
#writing stuff to file
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top