Folder Diff from command line

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Folder Diff from command line

Post by skdrs » Tue Sep 26, 2017 1:18 pm

Hello,

Is folder diff options are available only for registered customers?
I am trying to diff folders using command line
sgdm -d=D:\Result.txt "D:\Temp\Folder1" "D:\Temp\Folder2" , it returns the Exit status is 0 even though there are diff files in each folder.

Thanks in advance!

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Folder Diff from command line

Post by Beth » Wed Sep 27, 2017 9:18 am

The DiffMerge tool is fully functional even if not registered. I tested with a couple folders here as well just to make sure it's working properly.

What happens if you diff two other folders?

Try changing directories to D:\temp, and put the result file there as well, and then use the full path to sgdm. It would look like:

"C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" -d=Result.txt Folder1 Folder2

Does that work?
Beth Kieler
SourceGear Technical Support

skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Re: Folder Diff from command line

Post by skdrs » Wed Sep 27, 2017 1:51 pm

Thanks Beth, Does the folder search supports any file format ? Does it have the ability to identify dlls too ?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Folder Diff from command line

Post by Beth » Wed Sep 27, 2017 1:53 pm

I think it should work for any file format on the Folder Diff. It won't for the file diff, because the file diff can't deal with binary files, but at the folder level it should be fine.
Beth Kieler
SourceGear Technical Support

skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Re: Folder Diff from command line

Post by skdrs » Wed Sep 27, 2017 2:06 pm

Thanks Beth for the prompt reply.

Let us sat Folder A : D:\Temp1\Test1\Helloworld.dll
Folder B : D\Temp1\Test1\hollaworld.dll

diff is not outputting the dll , It was able handle .txt files

File only in left:
Doesn't give the Helloworld.dll

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Folder Diff from command line

Post by Beth » Thu Sep 28, 2017 7:45 am

Then it's probably in the filter list for folders. Go to Tools - Options - Folder Windows - Folder Filters. You can remove the DLL from the file suffix filters.
Beth Kieler
SourceGear Technical Support

skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Re: Folder Diff from command line

Post by skdrs » Thu Sep 28, 2017 11:09 am

Thanks for the reply, can I achieve that from Command line?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Folder Diff from command line

Post by Beth » Thu Sep 28, 2017 12:37 pm

I don't think so. I think you'll need to run the program to change the settings, and then the settings will be saved for future Diffs.
Beth Kieler
SourceGear Technical Support

skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Re: Folder Diff from command line

Post by skdrs » Mon Oct 02, 2017 9:16 am

okay, thanks Beth !

Post Reply