Henry Olive 5 Posted May 15, 2022 Good Day, My Program Folder = 'C:\MyApp\Data\MyData.FBD' // if it is LOCAL else it is \\Mysrv\c\MyApp My Exe File is in 'C:\MyApp' (Local) or \\Mysrv\c\MyApp I know how can i get ExeFolder which is C:\MyApp or \\Mysrv\c\MyApp but I Just need to get **MyApp** part of the folder w/o C:\ or \\Mysrv\c\ How can get it ? Thank You Share this post Link to post
David Heffernan 2345 Posted May 15, 2022 (edited) Isn't it ExtractFileName(ExtractFileDir(ExeName)) Edited May 15, 2022 by David Heffernan Share this post Link to post
dummzeuch 1505 Posted May 15, 2022 51 minutes ago, David Heffernan said: Isn't it ExtractFileName(ExtractFileDrive(ExeName)) No, that doesn't make any sense. Even assuming you meant the the other way round: ExtractFileDrive(ExtractFileName(ExeName)) it wouldn't return what he wants. I'd go for ExtractFileName(ExtractFileDir(ExeName)) Share this post Link to post
David Heffernan 2345 Posted May 15, 2022 1 hour ago, dummzeuch said: No, that doesn't make any sense. Even assuming you meant the the other way round: ExtractFileDrive(ExtractFileName(ExeName)) it wouldn't return what he wants. I'd go for ExtractFileName(ExtractFileDir(ExeName)) Er, yes, that's what I meant to type Share this post Link to post
Remy Lebeau 1394 Posted May 15, 2022 How to get path to the parent folder of a certain directory? Share this post Link to post