Results 1 to 2 of 2
  1. #1

    Default Ruuning Beyond Compare via commandLine with spaces in my filePath

    Hi, I am using Beyond Compare 4 on a 64-bit windows 7 enterprise SP1 machine

    I am trying to run beyond compare via command line.

    The command I am using is :

    BCompare.exe @"My Config File.txt" "File 1.xml" "File 2.xml"
    But this is not working because of spaces in the file Names.

    Beyond Compare shows a "file not found" error (as it is looking only for the part of fileName before spaces)

    If I compare files without any space in file name, it works.

    Also, the configuration given in "My Config File.txt " are read correctly. The issue is with Spaces in filenames for files to be compared.

    Pls help



    Thanks and Regards,
    Shruti

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,949

    Default

    Hello,

    The Windows Command line works with quotes, so as long as "file 1.xml" is in the same directory you are calling, this should work. Or the full path:
    bcompare.exe "@c:\config.txt" "c:\file 1.txt" "c:\folder\file 2.txt"

    Within config.txt, you would also need to use quotes around the variables, as the Windows command line does not pass in the " characters:
    "%1" and "%2"
    Aaron P Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •