ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Dialogs.FileOperation.TJamFileOperation.NewFolder

Creates a new folder.

Syntax
Pascal
class procedure NewFolder(const pFolder: IItemIdList; const pNewname: string; pOptions: TOperationOptions = soDefault); overload; static;
Parameters 
Description 
const pFolder: IItemIdList 
The existing folder where the new folder should be created.  
const pNewname: string 
The relative name of the new folder.  
pOptions: TOperationOptions = soDefault 
Optional: The options to use.  
Exceptions 
Description 
EArgumentException 
if pFileName is empty or not absolute.  
if parent folder of pFileName is invalid or if any COM exception occured.  

The following example shows how to create a new folder:

  var
    NewFolder: IItemIdList;
  begin
    NewFolder := TJamItemIdList.Create('C:new folder');
    TJamFileOperation.NewFolder(NewFolder);
  end;