Global Variables and Command Line ?

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:

Global Variables and Command Line ?

Post by othni »

Is there a way to pass global variables from the command line?

I have a filter that I have to change a couple of variables each time to run. I wonder if I can pass the variable from the command line or any other external way?
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Not yet - but it is a good idea. We'll add it soon.
othni
Posts: 34
Joined: Tue Mar 01, 2005 1:47 am
Location: San Juan, Puerto Rico
Contact:

Post by othni »

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

Re: Global Variables and Command Line ?

Post by DataMystic Support »

Hi Othni,

The latest 8.1 release of TextPipe now allows globals to be set on the command line e.g.

textpipe.exe "/f=myfilter.fll" "@address=3 blank st" "@city=norwood" "@zip=424324"
othni
Posts: 34
Joined: Tue Mar 01, 2005 1:47 am
Location: San Juan, Puerto Rico
Contact:

Re: Global Variables and Command Line ?

Post by othni »

Wow that was quick, thank you!
NPPI_Active
Posts: 4
Joined: Fri Aug 21, 2009 2:12 pm

Re: Global Variables and Command Line ?

Post by NPPI_Active »

Just a quick one, in dos i have the following:
SETLOCAL EnableDelayedExpansion
SETLOCAL ENABLEEXTENSIONS

Which means that I can have a environment variable of !NAME! instead of %NAME%. Now I execute:

textpipe.exe "/f=myfilter.fll" @address=!NAME!

But text pipe does not recognise the SETLOCAL i have put in place, it only recognises the %NAME% type. This is not a shortcoming but rather a "like to have" :wink:
NPPI_Active
Posts: 4
Joined: Fri Aug 21, 2009 2:12 pm

Re: Global Variables and Command Line ?

Post by NPPI_Active »

No need to respond. Are more thorough testing it works fine. :D
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Global Variables and Command Line ?

Post by DataMystic Support »

Great! I've never seen that before
Post Reply