Output of relevance queries into single xml file

I have two separate queries and both are working fine separately, is there any way to have them in single xml output file?

===Boot Time ===
`curl -k --insecure --user user:passwd --data-urlencode "relevance=(IDs of it, Names of it, concatenation ""; "" of (it as string) of IP Addresses of it, Operating Systems of it, value of results from (bes property whose (name of it = ""Boot Time"")) of it | ""Not reported"") of BES Computers" https://server1:52311/api/query -o c:\temp\boottime.xml`

== Deployment Date====

curl -k --insecure --user user:passwd --data-urlencode "relevance=(ID of it, Name of Issuer of it , Name of it , State of it , Time Issued of it , Start Date of it , Start Time_Of_Day of it , End Date of it , End Time_Of_Day of it , Names of Targeted Computers of it , Restart Flag of it) of BES Actions whose ((Name of it as lowercase contains ""2017m""))" https://server1:52311/api/query -o c:\temp\actiondate.xml

Instead of using the -o option you can put at the end of each command a redirection like that:

>> c:\temp\results.xml

for instance

curl -k --insecure --user user:passwd --data-urlencode "relevance=(IDs of it, Names of it, concatenation ""; "" of (it as string) of IP Addresses of it, Operating Systems of it, value of results from (bes property whose (name of it = ""Boot Time"")) of it | ""Not reported"") of BES Computers" https://server1:52311/api/query >> c:\temp\results.xml

Or you can merge the xml files at the end with the following command:

copy c:\temp*.xml c:\temp\output\results.xml

1 Like

Thanks for the suggestion