RIAS
asked on
Get Foldername
Hi,
How can i get the foldername from a path.
Cheers
How can i get the foldername from a path.
Cheers
ASKER
Thanks Andy,
It gave me the path and truncated the foldername.
It gave me the path and truncated the foldername.
Can you post the path you are using please.
ASKER
\\network\root\ABC\DEP\FOL DER1\FOLDE R2
need to retrieve:
FOLDER2
need to retrieve:
FOLDER2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
folderName = GetDirectoryName(path)
https://msdn.microsoft.com/en-us/library/system.io.path.getdirectoryname(v=vs.110).aspx