1) Removing a single attribute flag from a file (I want to remove the archive flag from a set of files, but not change anything else on them).
2) Copy a folder without copying the files/folders within the folder.
For issue 1, ${GetFileAttributes} and SetFileAttributes are proving difficult to work with; should I just make exec calls to attrib.exe? My main concern is efficiency as my utility may be working on 1000+ files at a time.
For issue 2, currently I'm just checking the existence of the folder name I want to copy at the target location and using CreateDirectory. Unfortunately, this means the folder may have differing attribute flags.
doesn't work because SetFileAttributes doesn't seem to accept a variable as input.SetFileAttributes "$TARGETDIRECTORY$R0" NORMAL
${GetFileAttributes} "$SOURCEDIRECTORY$R0" "ALL" $R3
SetFileAttributes "$TARGETDIRECTORY$R0" $R3
Anyhow, any feedback'd be appreciated and hopefully this post will generate some searchable help on the subject. I couldn't find beans when searching about this type of thing.
QM