Unit ShellFilesystem

From Ultibo.org
Revision as of 05:22, 20 March 2017 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


Description


Ultibo FileSystem Shell extension unit

To be documented

Constants



Shell filesystem command constants SHELL_FILESYS_COMMAND_*
SHELL_FILESYS_COMMAND_FILESYSTEM = 'FILESYSTEM';  
SHELL_FILESYS_COMMAND_CONTROLLER = 'CONTROLLER';  
SHELL_FILESYS_COMMAND_DISK = 'DISK';  
SHELL_FILESYS_COMMAND_PARTITION = 'PARTITION';  
SHELL_FILESYS_COMMAND_VOLUME = 'VOLUME';  
SHELL_FILESYS_COMMAND_DRIVE = 'DRIVE';  
 
SHELL_FILESYS_COMMAND_CACHE = 'CACHE';  
 
SHELL_FILESYS_COMMAND_DIR = 'DIR';  
SHELL_FILESYS_COMMAND_CHDIR = 'CD';  
SHELL_FILESYS_COMMAND_MKDIR = 'MD';  
SHELL_FILESYS_COMMAND_RMDIR = 'RD';  
 
SHELL_FILESYS_COMMAND_TYPE = 'TYPE';  
SHELL_FILESYS_COMMAND_COPY = 'COPY';  
SHELL_FILESYS_COMMAND_MOVE = 'MOVE';  
SHELL_FILESYS_COMMAND_DEL = 'DEL';  
SHELL_FILESYS_COMMAND_REN = 'REN';  
SHELL_FILESYS_COMMAND_ATTRIB = 'ATTRIB';  
SHELL_FILESYS_COMMAND_TOUCH = 'TOUCH';  
 
SHELL_FILESYS_COMMAND_VOL = 'VOL';  
SHELL_FILESYS_COMMAND_LABEL = 'LABEL';  
 
SHELL_FILESYS_COMMAND_DELTREE = 'DELTREE';  
SHELL_FILESYS_COMMAND_XCOPY = 'XCOPY';  


Shell filesystem alias constants SHELL_FILESYS_ALIAS_*
SHELL_FILESYS_ALIAS_LS = 'LS';  
SHELL_FILESYS_ALIAS_CD = 'CHDIR';  
SHELL_FILESYS_ALIAS_CDSLASH = 'CD\';  
SHELL_FILESYS_ALIAS_CDDOTDOT = 'CD..';  
SHELL_FILESYS_ALIAS_MD = 'MKDIR';  
SHELL_FILESYS_ALIAS_RD = 'RMDIR';  
SHELL_FILESYS_ALIAS_RM = 'RM';  
SHELL_FILESYS_ALIAS_DELETE = 'DELETE';  
SHELL_FILESYS_ALIAS_ERASE = 'ERASE';  
SHELL_FILESYS_ALIAS_RENAME = 'RENAME';  


Shell filesystem action constants SHELL_FILESYS_ACTION_*
SHELL_FILESYS_ACTION_LIST = 'LIST';  
SHELL_FILESYS_ACTION_SHOW = 'SHOW';  
 
SHELL_FILESYS_ACTION_LABEL = 'LABEL';  
SHELL_FILESYS_ACTION_FILL = 'FILL';  
SHELL_FILESYS_ACTION_SIGNATURE = 'SIGNATURE';  
SHELL_FILESYS_ACTION_INITIALIZE = 'INITIALIZE';  
 
SHELL_FILESYS_ACTION_EJECT = 'EJECT';  
SHELL_FILESYS_ACTION_LOCK = 'LOCK';  
SHELL_FILESYS_ACTION_UNLOCK = 'UNLOCK';  
 
SHELL_FILESYS_ACTION_ADD = 'ADD';  
SHELL_FILESYS_ACTION_DELETE = 'DELETE';  
SHELL_FILESYS_ACTION_ACTIVATE = 'ACTIVATE';  
SHELL_FILESYS_ACTION_DEACTIVATE = 'DEACTIVATE';  
 
SHELL_FILESYS_ACTION_FORMAT = 'FORMAT';  
SHELL_FILESYS_ACTION_DEFRAG = 'DEFRAG';  
SHELL_FILESYS_ACTION_CHECK = 'CHECK';  
SHELL_FILESYS_ACTION_CLEAN = 'CLEAN';  
SHELL_FILESYS_ACTION_DIRTY = 'DIRTY';  
SHELL_FILESYS_ACTION_MOUNT = 'MOUNT';  
SHELL_FILESYS_ACTION_DISMOUNT = 'DISMOUNT';  
 
SHELL_FILESYS_ACTION_STATS = 'STATS';  
SHELL_FILESYS_ACTION_FLUSH = 'FLUSH';  
SHELL_FILESYS_ACTION_DISCARD = 'DISCARD';  
 
SHELL_FILESYS_ACTION_START = 'START';  
SHELL_FILESYS_ACTION_STOP = 'STOP';  


Shell filesystem parameter constants SHELL_FILESYS_PARAMETER_*
SHELL_FILESYS_PARAMETER_HELP = '?';  
SHELL_FILESYS_PARAMETER_PAGE = 'P';  
SHELL_FILESYS_PARAMETER_SHORT = 'X';  
SHELL_FILESYS_PARAMETER_SUBDIR = 'S';  
SHELL_FILESYS_PARAMETER_OVERWRITE = 'O';  
 
SHELL_FILESYS_PARAMETER_READONLY = '+R';  
SHELL_FILESYS_PARAMETER_ARCHIVE = '+A';  
SHELL_FILESYS_PARAMETER_SYSTEM = '+S';  
SHELL_FILESYS_PARAMETER_HIDDEN = '+H';  
 
SHELL_FILESYS_PARAMETER_NOTREADONLY = '-R';  
SHELL_FILESYS_PARAMETER_NOTARCHIVE = '-A';  
SHELL_FILESYS_PARAMETER_NOTSYSTEM = '-S';  
SHELL_FILESYS_PARAMETER_NOTHIDDEN = '-H';  


Shell filesystem mask constants SHELL_FILESYS_*_MASK
SHELL_FILESYS_ALLFILES_MASK = '*.*';  


Type definitions


None defined

Class definitions



Shell file system

TShellFileSysFileSystem = class(TShellCommand)

public
constructor Create;  
private
 
public
 
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system controller

TShellFileSysController = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system disk

TShellFileSysDisk = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system partition

TShellFileSysPartition = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system volume

TShellFileSysVolume = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system drive

TShellFileSysDrive = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system cache

TShellFileSysCache = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system directory

TShellFileSysDir = class(TShellCommand)

public
constructor Create;  
destructor Destroy; override;  
private
function DirSearch(AShell:TShell; ASession:TShellSession; const APath,AName:String; AShort,ASubdir:Boolean; var AFiles,AFolders,ABytes:Int64):Boolean;  
function DirOutput(AShell:TShell; ASession:TShellSession; const ASearchRec:TFileSearchRec; AShort:Boolean):Boolean;  
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system change directory

TShellFileSysChdir = class(TShellCommand)

public
constructor Create;  
destructor Destroy; override;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoDefault(AShell:TShell; ASession:TShellSession; const AName:String; AParameters:TStrings):Boolean; override;  
function DoExtended(AShell:TShell; ASession:TShellSession; const AName:String; AParameters:TStrings):Boolean; override;  

Shell file system make directory

TShellFileSysMkdir = class(TShellCommand)

public
constructor Create;  
destructor Destroy; override;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system remove directory

TShellFileSysRmdir = class(TShellCommand)

public
constructor Create;  
destructor Destroy; override;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system type

TShellFileSysType = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system copy

TShellFileSysCopy = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system move

TShellFileSysMove = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system delete

TShellFileSysDel = class(TShellCommand)

public
constructor Create;  
destructor Destroy; override;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system rename

TShellFileSysRen = class(TShellCommand)

public
constructor Create;  
destructor Destroy; override;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system attribute

TShellFileSysAttrib = class(TShellCommand)

public
constructor Create;  
private
function AttribSearch(AShell:TShell; ASession:TShellSession; const APath,AName:String; ASubdir:Boolean; AMask,AUnmask:LongWord):Boolean;  
function AttribOutput(AShell:TShell; ASession:TShellSession; const ASearchRec:TFileSearchRec):Boolean;  
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system touch

TShellFileSysTouch = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system vol

TShellFileSysVol = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system label

TShellFileSysLabel = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell;ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell;ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell;ASession:TShellSession;AParameters:TStrings):Boolean; override;  

Shell file system delete tree

TShellFileSysDeltree = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  

Shell file system extended copy

TShellFileSysXcopy = class(TShellCommand)

public
constructor Create;  
private
 
public
function DoHelp(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoInfo(AShell:TShell; ASession:TShellSession):Boolean; override;  
function DoCommand(AShell:TShell; ASession:TShellSession; AParameters:TStrings):Boolean; override;  


Public variables


None defined

Function declarations



Initialization functions

procedure ShellFileSysInit;
Description: To be documented
Note None documented


Return to Unit Reference