Redirect output in processing

Kenneth Brody kenbrody at spamcop.net
Mon Jan 14 10:40:57 PST 2013


On 1/14/2013 1:15 PM, Dan McCabe wrote:
> On Mon, Jan 14, 2013 at 12:43 PM, Kenneth Brody <kenbrody at spamcop.net>wrote:
>> On 1/13/2013 6:12 PM, Dan McCabe wrote:
[...]
> Ken, your assumption is correct.  I knew what I meant, but didn't
> articulate it properly.  The filePro error is the result of a system
> command.  The menu script doesn't produce a filePro error.
>
>>
>> If my assumption is correct, please show us the actual prc line you're
>> using.
>>
>>               ::show popup ("5","-1") "TEMPORARY FILE COMPLETED, PROCESSING
> REPORT":
>               :ry eq "P":ha = cd <"Rtime -m rpt -v paysel -f pay -y payauto
> -r \"reg\" -rw \""{we{"\" -a -u" <hz:
>               :ry eq "D":ha = cd <"Rtime -m rpt -v paysel -f pay -y payauto
> -r \"reg\" -rw \""{we{"\" -a -u -pv" <hz:
>               :ry eq "P":system ha < "> nul":
>               :ry eq "D":system ha
>               ::gosub cleanup:
>
> RY is a user input field; cd is the path to run rreport.  WE is the week
> ending date the user selected.

And the line that gives the error is...???

[...]
>>   Have you considered using "start /min" to run the command in a minimized
>> window?
>
> I haven't because I have never heard of that, this is my first foray into
> any programming on Windows, I've been using filePro on UNIX for 25 years.
>   Is that possible from within processing?

Sure.  Just put "start/min" at the start of the command, such as:

     system "start /min" < ha

I am also going to assume that you want to wait for the command to finish, 
before continuing processing.  In that case:

     system "start /min /wait" < ha

 From the command line, you can get more info with:

     start /? | more

-- 
Kenneth Brody


More information about the Filepro-list mailing list