I believe your problem is because you are using a batch file
 
Since you are using an Active LInk I take it that you are wanting the
file written on the client PC.
 
Try doing the Echo without a batch file.  A run process action of:
%ComSpec% /c Echo $Character Field$ >> c:\temp\findme.txt
 
Fred
 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Latta
Sent: Tuesday, October 02, 2007 5:22 PM
To: [email protected]
Subject: Re: Write a Field Value to File


** 

Joe,

Maybe I over-simplified my test...

 

I have a "Run Process" Active Link action with the following string for
the Command Line: C:\temp\writeToFile.bat "$Character Field$"

 

writeToFile.bat:

ECHO %1 >> c:\temp\findme.txt

 

- mark

 

 

 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Joe D'Souza
Sent: Tuesday, October 02, 2007 4:16 PM
To: [email protected]
Subject: Re: Write a Field Value to File

 

That's strange. I have had the output of ipconfig /all dumped to a field
with no problems..

 

Are you using the $PROCESS$ action of a set field to dump the value?

 

Joe D'Souza

        -----Original Message-----
        From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Mark Latta
        Sent: Tuesday, October 02, 2007 6:06 PM
        To: [email protected]
        Subject: Re: Write a Field Value to File

        ** 

        Joe,

        I created the character field with 5 rows.  After further
testing I realized that it stopped writing to the file once it reached
the first space.  That tells me that it doesn't treat the character
field as a single input parameter, but rather looks at spaces as a
delimiter between multiple input parameters.  I'm debating whether to
create a loop inside the batch file that reads all input parameters and
reconstructs the file.

         

        - mark

         

        
________________________________


        From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Joe D'Souza
        Sent: Tuesday, October 02, 2007 4:01 PM
        To: [email protected]
        Subject: Re: Write a Field Value to File

         

        Make the character field as a multi-line field.. that might
work.

         

        Joe D'Souza
        
        -----Original Message-----
        From: Action Request System discussion list(ARSList)
[mailto:[email protected] <mailto:[email protected]> ]On Behalf Of
Mark Latta
        Sent: Tuesday, October 02, 2007 5:54 PM
        To: [email protected]
        Subject: Re: Write a Field Value to File
        
        
        Norm,
        Thanks for the suggestion.  I tried it, but I ran into a slight
problem.
        Only one line in the character field was written to file.
Everything
        past the first carriage return was lost.  Any suggestions to
write it
        all at once without parsing the character field at the carriage
returns
        and appending to the file?
        
        - mark

__20060125_______________________This posting was submitted with HTML in
it___ __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