FB6 - Dos Command, Log To Variable includes parameters

I have many actions in which I use a DOS Command to run a command line utility that returns output data in an XML string.  I would use the "Log to Variable" feature to capture the output into a variable.  I would then use the AfterAction event to load the XML from the variable into a DOM and parse what I needed.

As of FinalBuilder 6, it appears that the command line is being prefixed to the output if using the "Log to Variable".  So in FB5, I would get the following example output in a variable:

XMLData

from a Run DOS Command action that ran the following command line:

accurev show -fx -H"AKSWDEV-VH1:5050 Productivity Framework" -s"QA3_system" streams

Now in FB6, I get the following output in the variable using the same action and command line:

Parameters: /c accurev show -fx -H"AKSWDEV-VH1:5050 Productivity Framework" -s"QA3_system" streamsXMLData

Is there a way to supress the "Parameters: /c accurev show -fx -H"AKSWDEV-VH1:5050 Productivity Framework" -s"QA3_system" streams" part from showing up in the output.  It makes it impossibly to load the XML right into a DOM without first cleaning off the prefixed text.

Hi Mark,

We’ve added a new property to most of the actions that execute an external process to suppress the logging of the command parameters, you can find the property, ‘Log Process Parameters’, in the ‘Logging’ category of the action’s properties.

You can download the latest build of FinalBuilder 6.2 which includes this property from:

URL: www.finalbuilder.com/downloads/finalbuilder/620/FB620_1182.exe

Regards,
Paul.

Thanks, Paul.  I installed the latest you pointed me to, but this did not solve the problem.  For a Run DOS Command action, the command line itself is still prefixed to the variable if I choose to "Log To Variable".  For example, if the command line program is:

myprogram -param1 -param2

 the output from the command line action is:

This is text that is output from the command line program

and I choose the following logging properties on the action:

LogToVariable = True

LogActionPropertoes = False

then the resulting value in the Variable is:

/c myprogram -param1 -param2 This is text that is output from the command line program

I need to be just

This is text that is output from the command line program

Any thoughts on how to surpress the first part?  The LogActionProperties = False seems to only prevent these items from being logged:

ActionComment =
Command = myprogram -param1 -param2
Description = Get Workspace Basis Stream
Enabled = True
EnableLiveCapture = True
EnableReturnCodeCheck = True
EnableTimeout = False
ExpandActionLogTitle = True
ExtraCmdLineParamsAtEnd =
ExtraCmdLineParamsAtStart =
HideActionFromLog = False
HideWindow = True
IgnoreFailure = False
ImpersonateUser = False
ImpersonateUserName =
LogActionProperties = True
LogOutput = True
LogProcessParameters = True
LogToVariable = TempString
MaxRetryAttempts = 0
PauseInterval = 0
ProcessorAffinity = 0
ProcessPriority = tpNormal
RedirectStdErr = True
RetryPauseInterval = 1000
ReturnCodeComparator = rcLessThanEqualTo
ReturnCodeToCheck = 1
StartInDir =
SuppressStatusMessages = False
TerminateOnTimeout = True
TimeoutLength = 1
UseErrorDialogMonitor = False
WaitForCompletion = True

Hi Mark,

You need to set ‘Log Process Parameters’ to false, rather then ‘Log Action Properties’ (although that should also be set to false in this case). The ‘Log Process Parameters’ has not be exposed in the action’s properties dialog, you’ll need to set it from the ‘Properties / Action Inspector’ tab of the action (https://www.finalbuilder.com/finalbuilder/Help/HTML/actioninspector.htm)

Regards,
Paul.

Ah, perfect. Thanks!