Hi Everyone,
I am trying to write out a text file with input parameters used to silently install an application. The application install needs the text file entries to appear on specific lines. I am trying to do this by writing the file and using the 'Copy file from vCO to guest' workflow, but the workflow appears to be stripping out CRLF.
Here is some example js I am using in a scriptable task to write the file:
//FileWriter constructor
var myFileWriter = new FileWriter(fileConstructor);
//open the file for writing
myFileWriter.open();
//Empties the existing file. Without it we append
myFileWriter.clean();
//write into the file
myFileWriter.writeLine("Line1");
myFileWriter.writeLine("Line2");
myFileWriter.writeLine("Line3");
myFileWriter.close();
...browsing the result on the Orchestrator appliance, the file contents appear as I would expect:
Line1
Line2
Line3
However, after running the 'Copy file from vCO to guest' and opening the file in Windows 2008 R2 SP1 guest operating system, the file contents are:
Line1Line2Line3
Can anyone explain why this is, and perhaps offer a workaround so that the result on the guestOS resembles what is on the vRO appliance?
Thanks!
Appliance Version: | 7.2.0.19944 Build 4629837 |