Get Directory name from the given path

Hi Team ,

Suppose I am having a path (C:\Input\Data\Number\Forum)

Where Forum, is the name of the folder.

How can I get only the folder name “Forum” from the above input folder path?

Hi,

Hope the following helps you.

img20200520-2

Regards,

1 Like