I am using C++. I use mkdir("C:/test") to create a directory to store my files. I want to hidden the folder that i created. Don't want to let anyone know about this directory/folder at all. Can someone help me out? Thanks alot.

What OS? C:/test indicates that you use windows, but mkdir suggests you use linux?

Hi, i am using window XP. Microsoft visual C++ 6. Thanks for the replied

In windows:

#include <windows.h>

int main(){
    char name[] = "c:/my_hidden_porn_dir";
    CreateDirectory( name, NULL );
    SetFileAttributes( name, FILE_ATTRIBUTE_HIDDEN );
    return 0;
}

Thanks for yr help. Will try it out. Thanks