VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

GetPath

Agam Saran  (5 Submissions)   String Manipulation   Intermediate   Wed 3rd February 2021

Do you use different functions to extract Filename, Filepath, or Extension from a path. GetPath is a function that can extract 9 different parts from a path. It can extract FileName, JustName, FileExtension, FilePath, Drive, LastFolder, FirstFolder, LastFolderAndFileName and DriveAndFirstFolder. It supports relative paths too. Try to parse "C:\Look\At\The\FileExtension\Of\This\Path.exe\" to your GetExtension function and then it to my GetPath function. Also try "C:\Temp\Is\A\File\Not\A\Folder\Temp". You will know the difference. I will feel glad to hear your comments and suggestions.

Inputs
Path, from what to extract, and PathType, what to extract

Returns
The desired extraction

Rate GetPath (3(3 Vote))

Download GetPath

GetPath Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters