Hi Friends,
Can anyone tell how to change the attributes of a directory through C or C++.
I have tried to found in my compiler's help file but it was showing the method to change the file attributes but not the directory's.
I want to change the attributes of a directory from Read/Write to Read only and vice versa in my program.
Please help.......
Thanks in Advance.
Regards
Rituraj Raina
I think there are couple of ways to do this. Simplest I think is use the system call and use OS specific command within. e.g system("attrib +r mydir") will make mydir read-only.
cheers,
aj.wh.ca
Reputation Points: 12
Solved Threads: 1
Junior Poster in Training
Offline 53 posts
since Mar 2005