www.icetips.com  Icetips Utilities Documentation 6/29/2009    

Shell Class:  CreateDirectory

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.

 

Example:

ITS  ITShellClass

Code

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

ITS.CreateDirectory(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/createdirectory_shellclass.htm