Unable to exclude files with command line

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
caustrom
New Member
Posts: 2
Joined: Fri Jan 08, 2016 12:10 pm

Unable to exclude files with command line

Post by caustrom »

I'm trying to automate a deployment process by incorporating the copy of all "new" & "modified" files to a staging server ... I want to be able to exclude all files with the following extensions: xml, pdb & bak ... I'm executing the following statements within a powershell script:

Code: Select all

$Product = "XXXX"
$DeploymentDate = "YYYY-MM-DD"
$ExamDiffProgram = "C:\Program Files\ExamDiff Pro\ExamDiff.exe"
$ExamDiffFileExclusion = "*.xml,*.pdb,*.bak"
$ExamDiffFileInclusion = "*.xml,*.pdb,*.bak"
$ExamDiffLog = "C:\Temp\ExamDiff_$($Product)_$($DeploymentDate).log"

$SourceDirectory = '\\<DROP SERVER>\Builds\<BUILD DEFINITION>\<BUILD NUMBER>\_PublishedWebSites\<WEB APPLICATION>'
$TargetDirectory = '\\<DEPLOY SERVER>\Inetpub\<WEB SITE>\<WEB APPLICATION>'

$ExamDiffArguements = "$SourceDirectory $TargetDirectory /fi:$ExamDiffFileInclusion /fx:$ExamDiffFileExclusion /r2 /i /w /k /dv /o:$ExamDiffLog"

$Process = ( Start-Process -FilePath "$ExamDiffProgram" -ArgumentList $ExamDiffArguements -Wait -PassThru )
ExamDiff is able to compare $SourceDirectory to $TargetDirectory; however it does not exclude files: $ExamDiffFileExclusion

What am I missing?
Carl.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Unable to exclude files with command line

Post by psguru »

Without digging too deep, your include and exclude filters are identical: "*.xml,*.pdb,*.bak".
psguru
PrestoSoft
caustrom
New Member
Posts: 2
Joined: Fri Jan 08, 2016 12:10 pm

Re: Unable to exclude files with command line

Post by caustrom »

Sorry, that was a copy / paste issue ... actual values are:

Code: Select all

$ExamDiffFileExclusion = "*.xml,*.pdb,*.bak"
$ExamDiffFileInclusion = "**.*"
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Unable to exclude files with command line

Post by psguru »

Try simplifying your test case, maybe just running with hardcoded values (not scripted ones). I just ran with a simple test with

Code: Select all

 /fx:*.txt /fi:*.*
and everything worked as expected.
psguru
PrestoSoft
Post Reply