PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
This is a rexx function provided by
PPWIZARD.
This routine is named similar to an OS/2 specific call with a similar purpose, this PPWIZARD version works in all operating systems supported by PPWIZARD.
This function takes two parameters as follows:
- The part of the filename to extract.
Valid are (note you are also allowed to passed only the 1st character of
each command):
- basename - Base (example 'XCOPY')
- drive - Drive (example 'C:')
- extn - Extension (example 'EXE')
- location - Location (example 'C:\OS2\')
- name - Shortname (example 'XCOPY.EXE')
- path - Path (example '\OS2\')
- withoutextn - No extension (example 'C:\OS2\XCOPY')
- The name of the file.
The return value is the extracted component you requested.
It is important to note that a partial filename is not converted to its
full name before extraction, the part is extracted from what you supply.
It is also assumed that the filename is of a valid format.
;--- Capture some HTML information ---
#evaluate ShortNameHtml ^_filespec('name', '<?OutputFile>')^
PPWIZARD Manual

Thursday January 17 2002 at 6:27pm