www.icetips.com  Icetips Utilities Documentation 10/25/2009    

Shell Class:  CreateFolder

Previous  Top  Next  


Prototype: (String pDirectory),Long,PROC

 

pDirectoryDirectory path to create

 

ReturnsReturns the return value for SHCreateDirectoryEx, see link to MSDN below.  If the method succeeds it will return IT_ERROR_SUCCESS

 

This method can be used to create a single multi-level directory structure.  If one or more path is not found it is created.  Note that this method simply calls CreateDirectory.

 

Example:

ITS  ITShellClass

Code

Loc:FolderToCreate = 'c:\test\test\test'

ITS.CreateFolder(Loc:FolderToCreate)

 

This will create the directory levels needed to construct this path.

 

See also:

 

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



Direct link to this page: http://www.icetips.com/manuals/utilities/createfolder_shellclass.htm