PathSplit.SUB

by Mark C

Version 1 (April 4, 2016)

Download (77 downloads)

Subroutine to split a file path into constituent parts.

Pass path to split in var "spath"

Returns:

sdir - directory,no trailing "/"(unless input path is /file.ext).
sname - complete file name with any extension.
sbase - base name (sname minus extension).
sext - extension if any.

Example code included. Requires Automate 1.1.12 or later.

4.5 average rating from 2 reviews

5 stars
1
4 stars
1
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.