11 Replies Latest reply: Apr 1, 2015 3:19 AM by Sander Gardenier RSS

    Double quotes and store to

    Michiel van de Goor

      Hi, I want to generate command line list to use in a bat file in.

       

      I defined 5 variables with SET for the fixed text parts of my command line. these will be combined with a variable, created from a list and called one by one with a peek.

       

      I get double quotes in my results when I do not need them.

       

      If I call variable 1: set part1 = 'C:\Program Files (x86)\Advanced XML Converter\exporter.exe';

      as '$(part1)' as ....

       

      and store BatFile to BatFile.bat (txt);

       

      I get this result: C:\Program Files (x86)\Advanced XML Converter\exporter.exe

       

      Should be: "C:\Program Files (x86)\Advanced XML Converter\exporter.exe"

       

      If I change part 1 to set part1 = '"C:\Program Files (x86)\Advanced XML Converter\exporter.exe"';

      I get this: """C:\Program Files (x86)\Advanced XML Converter\exporter.exe"""

       

      I need to get rid off these extra "".

       

      The table BatFile.bat is generated with Autogenerate(1) for each line.

       

      How to get rid off the extra double quotes?