I want to make a program in Dev C++ that will set or remove the file attribute (-s -h -r) with out know how file location (in C:\ Drive).
For example: I set to attribute +s +h the file test.txt. I know that is in C:\ but I don't know where...
*I have problem with the file attribute, that is the code:
int attr = GetFileAttributes("test.txt");
"test.txt", // File Name.*
FILE_ATTRIBUTE_HIDDEN // File Attribute
*Second problem is how can I attribute the file without know where he is located..