Something else to try is using OLE Automation: Use the FileSystemObject Select object IFileSystem3 Object Select method ITextStream* CreateTextFile Add Method (enter parameter for file name) Select object ITextStream Object Select method void Write Add Method (enter parameter of text) Save active link HTH another Mark
//SIGNED// MARK A. WORLEY, Contractor, 2 SOS/SYOS Remedy ARS Support, SAIC Commercial: (402) 294-8226 DSN: 271-8226 mailto:[EMAIL PROTECTED] ________________________________ From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Den Fong Sent: Wednesday, October 03, 2007 09:26 To: arslist@ARSLIST.ORG Subject: Re: Write a Field Value to File ** Have you thought about writing it as HTML and using <br /> as the break? ** >>> Joe D'Souza <[EMAIL PROTECTED]> 10/2/2007 4:51 PM >>> Mark, Run Process perhaps treats the end of line as a carriage return and terminates it there.. Instead of Run Process use a Set field operation and use the $PROCESS$ from the set field operation to call the bat file and set it to the field in question 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:22 PM To: arslist@ARSLIST.ORG 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: arslist@ARSLIST.ORG 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: arslist@ARSLIST.ORG 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: arslist@ARSLIST.ORG 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 _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"