Thursday, September 14, 2006

DPNE

Short for Drive, Path, Name, Extent.

This module holds several low-level and high-level functions that parse a string reported to be that of a file name under Windows/DOS Operating systems.

Here I will describe the high-level functions, the ones you are most likely to use. If you would like to know more about the low-level functions which return pointers to a parsed string, please contact me.

strGetPath
Given a string, Return the Path Item.

Sub TESTstrGetPath()
MsgBox strGetPath("c:\autoexec.bat")
MsgBox strGetPath("D:\Greaves\Admin\Web\Driving\BRAKING.DOC")
End Sub

strGetNameExtent
Given a string, return the name and extent portion

strGetName
Given a string, return the name portion

strGetExtent
Given a string, return the extent portion

strGetDrivePath
Given a string, return the drive and path portions

strGetDrive
Given a string, return the drive portions

strFixPath
Ensure that the result has one and only one trailing, right-hand separator.

0 Comments:

Post a Comment

<< Home