Good afternoon everyone (evening, morning). Tell me the answer to this question: for each sysadmin, it is not a secret that periodically flash drives, after being treated with an antivirus, still do not display individual directories and files. Their attributes, under Win - hidden ... It is impossible to change. You have to use WinCom or TotalCom. In principle, everything is fine - there is a corresponding program, and nothing else is needed. But still, what functions are used to change the attributes of "damaged" objects in these programs? How it works? Thanks for the answer. PS F-and WinAPI watched.

    1 answer 1

    Crawl all directories and files on the disk, including nested ones, and set attributes to them using the SetFileAttributes API

    An example from msdn that gives a basic idea: Retrieving and Changing File Attributes