Hi all;
I'm trying to find a function from within the Microsoft Run-Time Library
for changing the attributes for a given file. Specifically, the attributes
that follow:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_A_ARCH
Archive. Set whenever the file is changed and cleared by the BACKUP command. Value: 0x20.
_A_HIDDEN
Hidden file. Not normally seen with the DIR command, unless the /AH option is used. Returns information about normal files and files with this attribute. Value: 0x02.
_A_NORMAL
Normal. File has no other attributes set and can be read or written to without restriction. Value: 0x00.
_A_RDONLY
Read-only. File cannot be opened for writing and a file with the same name cannot be created. Value: 0x01.
_A_SUBDIR
Subdirectory. Value: 0x10.
_A_SYSTEM
System file. Not normally seen with the DIR command, unless the /A or /A:S option is used. Value: 0x04.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I am able to get the above attributes using the _find functions
(findfirst and findnext):
http://msdn.microsoft.com/en-us/library/kda16keh%28VS.80%29.aspx
Now that I have them, I want to be able to change them.
The function "chmod" doesn't cover all of the above attributes.
The system command "Attrib" does cover all of the attributes that
I would like to change.
I could use the methods within the System::IO namespace of the
.NET Framework, and I will do that if I have no other alternative.
My question is: Does anyone know of any alternatives?
What about system services interrupts?
(I am not afraid to code in assembly language.)
Thanks!!!