Advertisement
4_2005-2006 String Manipulation #171014

GetPath

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.

AI

Resumen de IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fuente
original-source
Upload
Comentarios originales (3)
Recuperado de Wayback Machine