Hello! Textpipe is great, but the number of features is a bit intimidating Anyway, I am looking for a way to insert (i.e. replace a string) with the name of the directory the file resides in.
For example this file: C:\Stuff\documents\file.txt contains the searchstring [DIR]. Can Textpipe replace that string with documents or even Stuff\documents or C:\Stuff\documents\?
I've searched the forums and found hints pointing to @FullInputFilename but that string in itself does not work (i'm probably using it wrong). And I can't find anything about strings like that in the online documentation...
Thanks for your time!
Insert Parent directory name
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Insert Parent directory name
Just use a search and replace to find:
and replace with
Then you use use a second search replace to trim the trailing filename from @FullInputFilename by using the ** as markers.
Code: Select all
[DIR]
Code: Select all
**@FullInputFilename**