#include #include #include #include #include "debug.h" #include "args.h" #include "vectorutils.h" #include "stringutils.h" #include "csidlpaths.h" // todo: add wildcard support // todo: option to recurse directories // todo: add wince specific attrs /* ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename] [/S [/D]] + Sets an attribute. - Clears an attribute. R Read-only file attribute. A Archive file attribute. S System file attribute. H Hidden file attribute. [drive:][path][filename] Specifies a file or files for attrib to process. /S Processes matching files in the current folder and all subfolders. /D Processes folders as well. */ void usage() { printf("(C) 2003-2008 Willem jan Hengeveld itsme@xs4all.nl\n"); printf("Usage: pchmod [+|-][RASH] path ...\n"); } int main( int argc, char *argv[]) { DebugStdOut(); StringList namelist; DWORD removeflags= 0; DWORD addflags= 0; for (int i=1 ; i