Get file name from path
Function to get the file name from a full file path.
function getFileName(string filePath) {
int start = lastIndexOf(filePath, "\\");
string fileName = trim(substring(filePath, start+1, length(filePath)));
return fileName;
}Need support? Create a request with our support team.
Copyright © 2005 - 2026 Appfire | All rights reserved.
