|
|
|
|
|
fChangeExtension (Function) In french: fChangeExtension Changes the extension of a file on disk.
IF fChangeExtension("C:\Directory\Backup.txt", ".old") = True THEN
fSaveText("C:\Directory\Backup.txt", MyTextString)
ELSE
ErrorInfo()
END
Syntax
<Result> = fChangeExtension(<File path> , <New extension>)
<Result>: Boolean - True if the size changed,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<File path>: Character string File to be used (up to 260 characters). This parameter can correspond to:- a file name. This file will be automatically searched in the current directory (returned by fCurrentDir).
- a file name with its full or relative path. A UNC path can be used.
<New extension>: Character string New extension. If the new extension does not have a leading dot ".", it will be added automatically. Remarks If fChangeExtension handles a file with multiple extensions, only the last extension will change. For example, if you change the extension of "MyFile.log.doc", the result will be "MyFile.log.docx". Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|