Redirection and Pipe

Got a problem you cannot solve? Try here.
Post Reply
fsloredo
Posts: 2
Joined: Wed Feb 25, 2009 8:39 pm

Redirection and Pipe

Post by fsloredo »

Hi,

I need to run a program using redirection or a pipe like this

Program.exe < TextFile.txt or

Type TextFile.txt | Program.exe

I used IA command run program but it isn't working. Am I doing something wrong? Is there a alternative?

Thanks in advance,
sorry for my "wonderful" english.
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Post by bokkie »

I might be able to help up to a point.

MyApp.exe OriginalFile.pdf works, but:

MyApp.exe < qqq.txt which contains the same single argument does not. In other words, < redirection does not work in my example.

If you need to get the arguments to your program from an external file you can read the file using MSI code Read from Text File into a variable and then pass the variable as the argument to your program using Run Program or Run Program As.

Does that help you?
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
ulrichard
Posts: 150
Joined: Thu Dec 27, 2007 5:45 am
Location: Switzerland
Contact:

Post by ulrichard »

Hi fsloredo,

you can also first write to a textfile (*.bat) what you want to do, and then execute the batch.

Rgds
Richard
http://www.pointline.com
http://www.paraeasy.ch
http://ulrichard.ch
fsloredo
Posts: 2
Joined: Wed Feb 25, 2009 8:39 pm

Thanks

Post by fsloredo »

Very thanks! You really help me... I have used the .bat and it's work fine and very simple.

One more: thanks...
Post Reply