Jump to content

Recommended Posts

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
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×