Everyone,

Thanks for your help.  I got the batch file working with Michael's help.
After getting the VB executable working on the client I moved it to the
server and it is working there as well with input parameters.  It seems
the Set Field action is happy reading in the Echo output from a batch
file.  Similarly, the Set Field action is just as happy with the
console.write and console.writeline output commands from VB.  It looks
like the "exit status code" is handled automatically when the executable
program finishes.

 

- Mark

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Joe D'Souza
Sent: Tuesday, October 16, 2007 2:54 PM
To: arslist@ARSLIST.ORG
Subject: Re: $PROCESS$ Set Fields (Using Visual Basic or Batch File)

 

Are you getting any errors when running your VB executable using the
$PROCESS$? If so what is the error?

 

Joe D'Souza

        -----Original Message-----
        From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Mark Latta
        Sent: Tuesday, October 16, 2007 4:21 PM
        To: arslist@ARSLIST.ORG
        Subject: Re: $PROCESS$ Set Fields (Using Visual Basic or Batch
File)

        ** 

        Michael,

        Perfect!  That solved the problem relating to the batch file.
Now I just need to get it working with my executable VB program.

         

        - Mark

        
________________________________


        From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Durrant, Michael M. - ITSD
        Sent: Tuesday, October 16, 2007 1:58 PM
        To: arslist@ARSLIST.ORG
        Subject: Re: $PROCESS$ Set Fields (Using Visual Basic or Batch
File)

         

        Mark,

            It's printing ALL output from your bat file.  Include the
following line at the top of your file and you should get the desired
result:

         

            @echo off

         

            This suppresses all of the prompt info you'd normally see.

         

        Michael

         

        
________________________________


        From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Latta
        Sent: Tuesday, October 16, 2007 1:07 PM
        To: arslist@ARSLIST.ORG
        Subject: $PROCESS$ Set Fields (Using Visual Basic or Batch File)

        ** 

        Listers,

         

        Has anyone successfully used the $PROCESS$ Set Fields action
with the output of a Visual Basic 2005 executable file?  I get the
dreaded ARERR 1603 error.  I could use a code snippet to see how the
exit status code and return value need to be coded.

         

        I could also use a quick sample of a batch file that produces an
output that I can capture with the $PROCESS$ Set Fields action.

         

        Here is what I tried:

         

        batch.bat:

        echo hello

         

        Set Fields action:

        $PROCESS$ C:\temp\batch.bat

         

        Field Value:

        D:\Program Files\AR System\User>echo hello 

        hello

         

        Why do I get the first line "D:\Program Files..." and how do I
avoid it without a REPLACE kluge?

         

        Thanks in advance.

         

        - Mark

__20060125_______________________This posting was submitted with HTML in
it___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to