I want to create directories using CString variable "C:\backup\drivers" from an Edit Box.

Using CreateDirectory() only works with "c:\backup".

Some functions I found can create both directory and subdircetory only with CString such as "c:\\backup\\drivers", but will not work with "C:\backup\drivers".

Another function in my application only works with "C:\backup\drivers", but not with "c:\\backup\\drivers".

Is there any function which can create "C:\backup\drivers"?

Thanks a lot.