Multiple Directories as Command Line Arguments

Nathan Sokalski 4,111 Reputation points
2020-07-19T15:45:08.47+00:00

I don't know if this is the right place to ask this (I couldn't find the Forum for Visual Studio), but I don't know where else to go. I'm sure there are many developers that use SourceGear's DiffMerge software:

https://www.sourcegear.com/diffmerge/

I have added an External Tools command to Visual Studio 2019 Community that opens this with the selected file. I am attempting to also add one that opens it with 2 directories for the Folder Diff feature:

https://www.sourcegear.com/diffmerge/webhelp/chapter_folderdiffwindow.html
https://www.sourcegear.com/diffmerge/webhelp/sec__clargs__diff.html

I needed to use a Batch File (*.bat) file to do this, which was not a problem. However, because the 2 command line arguments are both directories (which means they end in a backslash), it is trying to interpret the 2nd argument as a file in the first directory. This is true regardless of whether I hardcode the arguments, whether I call it from a Batch File, Command Prompt, or even just Run (WIN+R), so it is not because of being in a Batch File. Is this unique to my scenario? Has anybody else ever tried to use command line arguments in which there are arguments that follow arguments ending in a backslash? Any ideas? Thanks.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 86,026 Reputation points
    2020-07-19T16:16:08.76+00:00

    Hi,

    You'll find the Visual Studio forums here:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio

    and here:
    https://developercommunity.visualstudio.com/spaces/8/index.html

    (Please don't forget to accept helpful replies as answer)

    Best regards,
    Leon

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.