Currently viewing: GipsySoft » Front Page» Articles


Create an entire path of directories. Each sub-directory is created as it goes.

Tested in UNICODE.

bool CreateDirectoryPath( LPCTSTR pcszDirectory )

Return value

Returns true if the creation is successful or if the directory already exists.


if( CreateDirectoryPath( "\\\\HOMER\\C\\blah\\de\\blah" ) )
	//	Then our entire path has been created


Click to view the source code

See also none