Announcement

Collapse
No announcement yet.

XML-Conversion with ext. tool does not work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • XML-Conversion with ext. tool does not work

    Hello,

    I tried this tool for XML-Conversion but I won't get it to work.
    (STDOUT!)

    I tried these Loading-Configs:

    C:\Programme\Beyond Compare 3\Helpers\xmlformatexpat.exe %s %t
    "C:\Programme\Beyond Compare 3\Helpers\xmlformatexpat.exe" %s %t
    "C:\Programme\Beyond Compare 3\Helpers\xmlformatexpat.exe" "%s" "%t"
    Helpers\xmlformatexpat.exe %s %t
    Helpers\xmlformatexpat.exe" %s %t
    Helpers\xmlformatexpat.exe" "%s" "%t"

    I wrote a batch file: xmlformatexpat.exe %1 > %2
    I called it: xmlform.bat %s %t
    I called it: xmlform.bat %n %t
    I called it: xmlform.bat %n %t

    I tried to rename the tool from *.exe to *.bat

    and so on, and so on, and so on...

    Nothing works - the Temp-Files are empty

    Please help.

    Thanks in advance.

  • #2
    Hi Sasha!

    Since this converter puts the output to STDOUT you must include an output-redirection in the command-line:

    Code:
    "C:\Programme\Beyond Compare 3\Helpers\xmlformatexpat.exe" "%s" > "%t"
    Also be sure that the libexpat.dll is in the correct directory so that it can be found when BC invokes the xmlformatexpat.exe.


    Bye
    Christoph
    Last edited by chrroe; 01-Dec-2008, 11:56 AM.

    Comment


    • #3
      I must correct myself
      I'm not able to get this conversion to work, either.

      Even using Process Explorer and Process Monitor from Sysinternals didn't really help. The only combination that makes xmlformatexpat.exe read the xml-file is:

      Helpers\xmlformatexpat.exe %s

      As soon as I add >%t the converter doesn't access the file anymore!!
      Very misteroius ...
      In a DOS command window the redirection works as expected.

      @Scootersoftware:
      Can you please take a look at it?

      Comment


      • #4
        Christoph,

        I don't think the external conversion command line uses a full windows shell, so > to redirect standard output won't work unless you wrap the call inside a batch file.

        If you create a batch file with the command "Helpers\xmlformatexpat.exe %1 > %2", then call it as the external conversion utility it should work.
        Chris K Scooter Software

        Comment


        • #5
          Originally posted by chrroe View Post
          Since this converter puts the output to STDOUT you must include an output-redirection in the command-line:

          Code:
          "C:\Programme\Beyond Compare 3\Helpers\xmlformatexpat.exe" "%s" > "%t"
          I did.

          Originally posted by Chris
          If you create a batch file with the command "Helpers\xmlformatexpat.exe %1 > %2", then call it as the external conversion utility it should work.
          I also did.

          Please take a look to my opening post where I explained, what I have already done.

          Edit: I got it! I used a relative path inside the batch - with an absolute path it works!
          Thanks anyway.
          Last edited by SaschaF.; 02-Dec-2008, 05:38 AM.

          Comment


          • #6
            I believe chris was referring to this:
            I wrote a batch file: xmlformatexpat.exe %1 > %2
            I called it: xmlform.bat %s %t
            I called it: xmlform.bat %n %t
            I called it: xmlform.bat %n %t
            The bat file needed Helper/xmlformatexpat.exe %1 > %2

            Glad full path names works for you. If you have any other questions, please let us know.
            Last edited by Aaron; 04-Dec-2008, 03:34 PM. Reason: removed the quoted original message. Quote button accidently added more than I intended.
            Aaron P Scooter Software

            Comment

            Working...
            X