These routines can strip a file name from a path, a directory from a path, and an extension from a path. They can also determine the parent directory path. They are fairly simple routines that I use in misc. places.
Author: Lewis Moten Code: ASP 2.0 & VBScript
|The best to use |
Written by Lil Peck from Kansas (Sunday, September 18, 2005)
Writer is with: http://walktrotlope.com
||Strengths: Extension stripping works for 3 or 4 letter file extensions
Weaknesses: Easiest to understand when you've had more experience
Details: I used to use a bit of code that was easier to understand for adaptation but which worked well only with three letter file extensions. I prefer this one now because it works with three and four letter extensions and is a lean bit of code.
Review Based On: 1 Month(s) of usage