Need path only

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
othni
Posts: 34
Joined: Tue Mar 01, 2005 1:47 am
Location: San Juan, Puerto Rico
Contact:

Need path only

Post by othni »

I need to capture the path for the file being processed in my output file.

So I did this:

One filter uses the @FullInputFilename macro to first add the whole thing to the beginning of the line.

The next filter is a Search/Replace that looks for @inputfilename and replaces that with NOTHING.

But this last filter is not working.

What I am trying to do is end up only with the PATH portion of it.

Is there a macro specifically for this? Why it is not working? Is there another way to do this?

Thank you
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

It's not working because @inputFilename and other macros can't be used in the search string (for efficiency reasons).

Why not add @FullInputFilename with a \t or comma after it at the beginning of the line, then use a search/replace pattern restricted to the first tab or CSV field to remove everything after the last '\' up to the end of the field?
Post Reply