And another way: Put this in a text file called alb.rmd and run it. ——————————————————— SET VAR+ vFilePath TEXT, + vFileName TEXT, + vLastParen INTEGER, + vPathLength INTEGER, + vFileName TEXT SET VAR vFilePath = (FINDFILE("alb.rmd")) SET VAR vLastParen INTEGER = (SLOCP(.vFilePath,"\",-1)) SET VAR vPathLength INTEGER = (SLEN(.vFilePath)) SET VAR vFileName TEXT = (SGET(.vFilePath,(.vPathLength-.vLastParen),+ (.vLastParen + 1))) PAUSE 2 USING .vfilepath PAUSE 2 USING .vfilename RETURN ————————————————————
> On Feb 15, 2018, at 1:27 PM, jan johansen <j...@jjcalibrations.com> wrote: > > Well that works too. More than one way to skin a cat. > > > -----Original Message----- > From: Dan Goldberg <d...@lancecamper.com> > To: "rbase-l@googlegroups.com" <rbase-l@googlegroups.com> > Date: Thu, 15 Feb 2018 20:23:58 +0000 > Subject: RE: [RBASE-L] - File location and path > > You would need to strip it out. > > This what I use to get the filename. > > > PLUGINS loadfilename vefilename |fullpath on |TITLE SELECT file + > TO attach |view_mode list |initial_dir &vedir > > SET VAR vefilename2 = (SRPL(.vefilename,'\',',',0)) > > SET VAR veitemcnt = (ITEMCNT(.vefilename2)) > > set var vfilenameonly = (SSUB(.vefilename2,.veitemcnt)) > > Dan Goldberg > > > From: rbase-l@googlegroups.com [mailto:rbase-l@googlegroups.com] On Behalf Of > jan johansen > Sent: Thursday, February 15, 2018 12:06 PM > To: rbase-l@googlegroups.com > Subject: [RBASE-L] - File location and path > > I'm looking for ideas. > > I need BOTH the fullpath and the filename without the path. > I don't think there is an option using either of the loadfile plugins. > > Thoughts? > -- > For group guidelines, visit > http://www.rbase.com/support/usersgroup_guidelines.php > <http://www.rbase.com/support/usersgroup_guidelines.php> > --- > You received this message because you are subscribed to the Google Groups > "RBASE-L" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rbase-l+unsubscr...@googlegroups.com > <mailto:rbase-l+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > For group guidelines, visit > http://www.rbase.com/support/usersgroup_guidelines.php > <http://www.rbase.com/support/usersgroup_guidelines.php> > --- > You received this message because you are subscribed to the Google Groups > "RBASE-L" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rbase-l+unsubscr...@googlegroups.com > <mailto:rbase-l+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > For group guidelines, visit > http://www.rbase.com/support/usersgroup_guidelines.php > <http://www.rbase.com/support/usersgroup_guidelines.php> > --- > You received this message because you are subscribed to the Google Groups > "RBASE-L" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rbase-l+unsubscr...@googlegroups.com > <mailto:rbase-l+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to rbase-l+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.