It looks like you're new here. Sign in or register to get started.
FileTxt := PathAndFileTxt; WHILE STRPOS(FileTxt, '\') <> 0 DO FileTxt := COPYSTR(FileTxt, 1 + STRPOS(FileTxt, '\'));
Comments
You just can use an Automation 'Windows Script Host Object Model'.FileSystemObject and function GetFileName
or like this I hope
strFilename := strcpy(strFile,strlen(strPath)+1);