Question : how to  creat folder  and change it's attribute  in c++?

hello,

want to  create in c++  folder and change it's  folder  attribute

thanks

Answer : how to  creat folder  and change it's attribute  in c++?

CreateDirectory:
http://msdn.microsoft.com/en-us/library/aa363855(VS.85).aspx

There is a link to an example:
Retrieving and Changing File Attributes
http://msdn.microsoft.com/en-us/library/aa365522(v=VS.85).aspx

The program there creates a directory - check the line with CreateDirectory(argv[1], NULL).

SetFileAttribute
http://msdn.microsoft.com/en-us/library/aa365535(VS.85).aspx


Random Solutions  
 
programming4us programming4us