Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: INI file size in XP Pin
David Crow16-Jan-07 3:42
David Crow16-Jan-07 3:42 
Questionquestion about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
George_George15-Jan-07 20:07
George_George15-Jan-07 20:07 
AnswerRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
Michael Dunn15-Jan-07 22:21
sitebuilderMichael Dunn15-Jan-07 22:21 
GeneralRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
George_George15-Jan-07 23:59
George_George15-Jan-07 23:59 
GeneralRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
Michael Dunn16-Jan-07 8:03
sitebuilderMichael Dunn16-Jan-07 8:03 
GeneralRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
George_George16-Jan-07 15:10
George_George16-Jan-07 15:10 
QuestionSpace key + menu operation Pin
Member 21206615-Jan-07 20:05
Member 21206615-Jan-07 20:05 
QuestionCreating Sub folder Pin
Suresh H15-Jan-07 19:55
Suresh H15-Jan-07 19:55 
Hello all,

I want to check for some folder c:\\a\\b and create if that folders does not exits.

Till now I have done with checking and creating the c:\\a

Can anyone help me hw to create the sub folder along with the main folder.

I am using below code.

<br />
int ret;<br />
char buf[ ] = "C:\\A";<br />
ret = PathFileExists(buf);<br />
if(ret == 0)<br />
{<br />
   CreateDirectory(buf,NULL);    <br />
}



if I give char buf[ ] = “C:\\A\\B\\”; this code has no effect .
AnswerRe: Creating Sub folder Pin
Hamid_RT15-Jan-07 20:02
Hamid_RT15-Jan-07 20:02 
QuestionRe: Creating Sub folder Pin
Rajesh R Subramanian15-Jan-07 20:05
professionalRajesh R Subramanian15-Jan-07 20:05 
AnswerRe: Creating Sub folder Pin
Suresh H15-Jan-07 20:16
Suresh H15-Jan-07 20:16 
GeneralRe: Creating Sub folder Pin
Hamid_RT15-Jan-07 20:25
Hamid_RT15-Jan-07 20:25 
GeneralRe: Creating Sub folder Pin
Suresh H15-Jan-07 20:36
Suresh H15-Jan-07 20:36 
GeneralRe: Creating Sub folder Pin
Hamid_RT15-Jan-07 20:45
Hamid_RT15-Jan-07 20:45 
GeneralRe: Creating Sub folder Pin
Rajesh R Subramanian15-Jan-07 20:51
professionalRajesh R Subramanian15-Jan-07 20:51 
GeneralRe: Creating Sub folder Pin
Suresh H15-Jan-07 21:00
Suresh H15-Jan-07 21:00 
GeneralRe: Creating Sub folder Pin
Rajesh R Subramanian15-Jan-07 20:50
professionalRajesh R Subramanian15-Jan-07 20:50 
GeneralRe: Creating Sub folder Pin
Suresh H15-Jan-07 21:16
Suresh H15-Jan-07 21:16 
GeneralRe: Creating Sub folder Pin
Rajesh R Subramanian15-Jan-07 21:21
professionalRajesh R Subramanian15-Jan-07 21:21 
GeneralRe: Creating Sub folder Pin
Suresh H15-Jan-07 22:00
Suresh H15-Jan-07 22:00 
GeneralRe: Creating Sub folder Pin
Rajesh R Subramanian15-Jan-07 22:04
professionalRajesh R Subramanian15-Jan-07 22:04 
GeneralRe: Creating Sub folder Pin
Suresh H15-Jan-07 22:10
Suresh H15-Jan-07 22:10 
GeneralRe: Creating Sub folder Pin
prasad_som15-Jan-07 22:42
prasad_som15-Jan-07 22:42 
GeneralRe: Creating Sub folder Pin
prasad_som15-Jan-07 23:12
prasad_som15-Jan-07 23:12 
GeneralRe: Creating Sub folder Pin
Rajesh R Subramanian15-Jan-07 22:11
professionalRajesh R Subramanian15-Jan-07 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.