for example, I have a file as SYSTEM.INI, its attributions are HIDDEN, ARCHIVE, READ ONLY. And I want to remove all attribution it has.
Do you understand??? Help me!
for example, I have a file as SYSTEM.INI, its attributions are HIDDEN, ARCHIVE, READ ONLY. And I want to remove all attribution it has.
Do you understand??? Help me!
In most (if not all) unices there's the chmod(2) function:
Code:
#include <sys/types.h>
#include <sys/stat.h>
int chmod(const char *path, mode_t mode);
For windows I vaguely remember a 'cacls' method; check it out.
Comment