How to hide a file (any file)?
-
i want to write a program by C++ , that it will hide a file so that noone can see this file in the directory. What techonology of this i need to learn to do it by myself? Thanks Ask More - Learn More JohnJone
:-)
HANDLE hFile;
TCHAR fileName = TEXT("C:\\myfile.txt");hFile = CreateFile(
fileName,
GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
CREATE_NEW,
FILE_ATTRIBUTE_HIDDEN
,
NULL);"After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
-
i want to write a program by C++ , that it will hide a file so that noone can see this file in the directory. What techonology of this i need to learn to do it by myself? Thanks Ask More - Learn More JohnJone
john_tran wrote: What techonology of this i need to learn to do it by myself? How about
SetFileAttributes()
?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
-
:-)
HANDLE hFile;
TCHAR fileName = TEXT("C:\\myfile.txt");hFile = CreateFile(
fileName,
GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
CREATE_NEW,
FILE_ATTRIBUTE_HIDDEN
,
NULL);"After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
i know what you means. But i want to know other tech. Because if we set the file's attribute is "hide", user can easily unhide if they choose folder option/and choose unhide in windows. I mean that i will hide all time even user set view unhide file. And just my program can set unhide attribute to the file only. Ask More - Learn More JohnJone
-
i know what you means. But i want to know other tech. Because if we set the file's attribute is "hide", user can easily unhide if they choose folder option/and choose unhide in windows. I mean that i will hide all time even user set view unhide file. And just my program can set unhide attribute to the file only. Ask More - Learn More JohnJone
Ah, well, then the answer is simple. It's just not possible :-) "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
-
Ah, well, then the answer is simple. It's just not possible :-) "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
-
Oh, i see some application can do that. But i dont know how they do that, what technology they use.
Really?, on Win32? Got any links or names? It sounds interesting, allthough the use of it goes beyond my imagination. "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
-
Oh, i see some application can do that. But i dont know how they do that, what technology they use.
By the way, how did you notice that the files were hidden :-) "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus