`
Par2: Short file names/FNSplit 2001-12-15 -- Arnor Baldvinsson >if path is c:\temp\test.clw >I would like only 'test.clw' returned. If you mean the filename only, then us fnSplit from clib.clw: Global Map: Include('Clib.clw') Then: Loc:Path Cstring(256) Loc:Drive Cstring(256) Loc:Dir Cstring(256) Loc:File Cstring(256) Loc:Ext Cstring(256) Code X# = FnSplit(Loc:Path,Loc:Drive,Loc:Dir,Loc:File,Loc:Ext) Works fine. As for Short path/file names, you can use ShortPath(Loc:Path) to get that. Printed November 23, 2024, 2:06 am This article has been viewed/printed 35217 times. |