Question:
What is the Windows' Call to Change an Attribute of a File Programmatically?
Anita Mallya
2013-06-06 03:09:10 UTC
I just learnt a Windows call to get Volume Information of a Hard Disk. For example, if we use DECLARE INTEGER GetVolumeInformation IN win32api STRING @,STRING @,INTEGER ,STRING @,STRING @,STRING @,STRING @,INTEGER and then give the command GetVolumeInformation(@root,@volname,100,@volserno,@maxcomlen,@filsysflag,@filsysname,144) then we can get to know Volume Information of a Hard Disk.

Now, I wish to know whether there is any Windows Command in WIN32 or elsewhere to change a File's Attribute. For example, I want to programmatically make a File on Hard Disk a Read Only File or change a Read Only File into a File that I can programmatically write on to (even if its original setting is "Read Only").
Three answers:
?
2013-06-06 03:41:45 UTC
Which language are trying at? .NET has directly class libraries to do that. I am sure other language would have the same too.



You can using DOS commands also.
Chaitanya
2013-06-06 06:57:33 UTC
From the understanding that I could make.. see the below link and check if this helps answer



http://stackoverflow.com/questions/3505662/change-attributes-of-a-group-of-files-in-ms-dos
2013-06-06 05:00:46 UTC
i cant understand the string you have posted try to make it clear


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...