Home Search

DriveWorks Pro 22
FsChangeExtension

Send Feedback

FsChangeExtension

This function returns the full file path and name of the given file, substituting it's existing file extension with the given extension.

Syntax

FsChangeExtension([Path],[Extension])

Where:

Path is the path to the file to change

Extension is the new file extension, or an empty string to remove the file extension

Examples

Rule

Meaning
FsChangeExtension("C:\DriveWorks\ChangeFileExtension\MyFileName","xml") This will return the value C:\DriveWorks\ChangeFileExtension\MyFileName.xml