Hello all, Say i want to create a file called "slash0r.cfg" in the directory "main\config\slash0r". That isn't directly possible with CreateFile, so i should use CreateDirectory first, but i have no clue how to create the directory structure, so can anybody help me with that problem? tia
Posted on 2001-05-08 15:25:00 by Slash0r
Create Directory doesn't ask for a structure: BOOL CreateDirectory( LPCTSTR lpPathName, // pointer to directory path string LPSECURITY_ATTRIBUTES lpSecurityAttributes // pointer to security descriptor );
Posted on 2001-05-08 16:17:00 by goofee
I think, the question is, how to create more then one directory. CreateDirectory cannot make two dirs at once, you first have to create "main", then goto "main", then "config", goto "config" and make "slash0r". You can dive into dirs with the SetCurrentDir function.
Posted on 2001-05-09 05:08:00 by beaster