Group Files and Directories
COPY FILE
Copies a file to a new file or to an output device.
COPY FILE <cSourceFile> TO <cTargetFile>|<cDevice>
CreateDir()
Creates a directory
CreateDir( <cDirectory> ) --> lSuccess
CurDir()
Determines or changes the current directory of a drive.
CurDir( [<cDrive>] ) --> cCurrentDirectory or CurDir( <cDirectory> ) --> cPreviousDirectory
CurDrive()
Determines or changes the current drive.
CurDrive( [<cDrive>] ) --> cOldDrive
DELETE FILE
Deletes file from a hard disk or diskette.
DELETE FILE <cFileName>
Directory()
Fills an array with information about the files in a specified path.
Directory( [<cDirectory>], [<cAttribute>] ) --> aDirectory
ERASE
Deletes a file from a hard disk or diskette.
ERASE <cFileName> | DELETE FILE <cFileName>
FAttr()
Retrieves or modifies file attributes.
FAttr( <cFileName>, [<cAttribute>] ) --> cFileAttributes
FClose()
Closes an open binary file.
FClose( <nHandle> ) --> lError
FCreate()
Creates a new file or sets the length of an existing file to zero.
FCreate( <cFilename>, [<nAttribute>] ) --> nFileHandle
FErase()
Deletes a file.
FErase( <cFilename> ) --> nSuccess
FError()
Retrieves the error code after completion of a low level file function.
FError() --> nErrorCode
FExists()
Determines whether the specified file exists.
FExists( <cFileName>, [<cFileAttribute>] ) --> lExists
File()
Determines whether the specified file exists.
File( <cFilename>, [<cAttribute>] ) --> lExist File( @<cFilename>, [<cAttribute>] ) --> lExist
FOpen()
Opens a file at the operating system level.
FOpen( <cFilename>, [<nMode>]) --> nHandle
FRead()
Reads a character string from a file into a memory variable.
FRead( <nHandle>, @<cBuffer>, <nBytes> ) --> nBytes
FReadStr()
Reads a character string from a file stopping at an occurrence of Chr(0).
FReadStr( <nHandle>, <nBytes> ) --> cString
FRename()
Changes the name of a file.
FRename( <cOldName>, <cNewName> ) --> nSuccess
FSeek()
Positions the file pointer within a file.
FSeek( <nHandle>, <nOffset>, [<nOrigin>] ) --> nPosition
FSize()
Determines and optionally sets the size of a file.
FSize( <cFileName>|<nFileHandle> [, <nNewSize>] ) --> nBytes
FWrite()
Writes a character string into an open file.
FWrite( <nHandle>, <cString>, [<nBytes>] ) --> nBytesWritten
GetUniqueFileName()
Creates a unique name for a file.
GetUniqueFileName( [<cPath>], [<cPrefix>] ) --> cFileName
RemoveDir()
Removes a directory
RemoveDir( <cDirectory> [,<lForce>] ) --> lSuccess
RENAME
Changes the name of a file.
RENAME <cOldName> TO <cNewName>
ShellLinkCreate()
Create a Shell link object.
ShellLinkCreate( <cLinkTarget>, <cLinkFile>, [<cWorkingDir>], [<cCmdArgs>], [<cDescr>] ) --> <lSuccess>
ShellLinkResolve()
Resolves a link object of the Windows Shell.
ShellLinkResolve( <cLinkFile> ) --> <cLinkTarget>