Topic
  • 2 replies
  • Latest Post - ‏2013-04-25T19:56:19Z by Luke.Foelske
Luke.Foelske
Luke.Foelske
5 Posts

Pinned topic Web Report Analysis - New Line For Each Result?

‏2013-04-23T19:41:53Z |

I am attempting to do multiple file searches and list the application if the file exists on separate lines, but not have a blank line if the file is not found.

For instance, this is the relevance I've put in:

(if (exists file "C:\Program Files\Microsoft\place.exe"then "place%0d%0a"  else "" ) & (if (exists file "C:\windows\cmd.exe"then "CMD%0d%0a"  else "" )& (if (exists file "C:\Documents and Settings\luke.foelske\Deskp\QnA\FixletDebugger.exe"then "broken%0d%0a" else "" )

Unfortunately, this gives the following results in Web Reports:

place QnA

In other words, the "%0d%0a" doesn't seem to be working. I've also noticed some people said "%0a%0d" was the correct character code for a new line. This didn't work either.

 

Any help would be greatly appreciated. 

  • GPNFan
    GPNFan
    1 Post

    Re: Web Report Analysis - New Line For Each Result?

    ‏2013-04-25T19:52:27Z  

    Hi Luke,

    Are you trying to write your output to a flat file on an endpoint? Or are you trying to get the results back in a browser?  If you're trying for a browser, I'd suggest replacing the "%0d%0a" with the appropriate html code, like "<br>", or maybe wrap the results in a table, with a row for each line of output.

    Hope that helps!

    Dave

  • Luke.Foelske
    Luke.Foelske
    5 Posts

    Re: Web Report Analysis - New Line For Each Result?

    ‏2013-04-25T19:56:19Z  
    • GPNFan
    • ‏2013-04-25T19:52:27Z

    Hi Luke,

    Are you trying to write your output to a flat file on an endpoint? Or are you trying to get the results back in a browser?  If you're trying for a browser, I'd suggest replacing the "%0d%0a" with the appropriate html code, like "<br>", or maybe wrap the results in a table, with a row for each line of output.

    Hope that helps!

    Dave

    I'm trying to display the analysis in a web reports column. 

     

    Something similar to IP addresses with multiple lines.