Let say, a file has the following attributes: ReadOnly, Hidden, Archived, System. How can I remove only one Attribute? (for example ReadOnly)

If I use:

Io.File.SetAttributes("File.txt",IO.FileAttributes.Normal)

it removes all the attributes.

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top