Page 1 of 1

Command line > disable 'Press any key...'

Posted: Wed Sep 04, 2013 11:11 pm
by xyzzy_rad
Hello,

is there any way to disable 'Press any key to close this console window...' when using ExamDiff Pro with command line options?

I would prefer the program just quit, under all circumstances (even if there are warnings/errors, ...).

Thanks in advance!

Re: Command line > disable 'Press any key...'

Posted: Thu Sep 05, 2013 9:27 am
by psguru
Yes, don't run examdiff.exe, just examdiff (which will invoke examdiff.com, the command line shell).

Re: Command line > disable 'Press any key...'

Posted: Thu Sep 05, 2013 11:54 pm
by xyzzy_rad
psguru wrote:Yes, don't run examdiff.exe, just examdiff (which will invoke examdiff.com, the command line shell).
That's exactly what I needed, thanks!

Re: Command line > disable 'Press any key...'

Posted: Thu Apr 03, 2014 6:49 am
by richelle21
I have the same issue and changing the call from examdiff.exe to just examdiff, did not resolve the issue. Any other ideas?

This is the line:

my $cmd="$EXAMDIFF\\examdiff $dir1 $dir2 /g:$BINPATH\\CodeCompareOptions.txt /o:\"$file\"";

Thank you in advance for your assistance.

Re: Command line > disable 'Press any key...'

Posted: Sun Apr 06, 2014 10:01 am
by psguru
Is there examdiff.com in your ExamDiff Pro folder? If not, examdiff.exe will be executed causing the same issue. If yes, try running examdiff.com explicitly.

Re: Command line > disable 'Press any key...'

Posted: Tue Apr 08, 2014 6:36 am
by richelle21
Thank you for saving my sanity. :)

Examdiff.com was there, but I guess it was using examdiff.exe because when I changed the line, to use examdiff.com, it worked perfectly.

The new line is:

my $cmd="$EXAMDIFF\\examdiff.com $dir1 $dir2 /g:$BINPATH\\CodeCompareOptions.txt /o:\"$file\"";


Thank you again!

Re: Command line > disable 'Press any key...'

Posted: Wed Apr 09, 2014 1:56 am
by MudGuard
My guess is: if you don't give the file extension (as in examdiff), then PATHEXT is evaluated, and the first hit in PATHEXT will be taken.
If ".exe" is given before ".com" in PATHEXT, then examdiff.exe will be called ...

My PATHEXT environment variable is on one machine:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.PL
and on the other:
PATHEXT=.EXE;.BAT;.CMD;.COM;.VBS;.VBE;.PL

So my advice is: never use the version without file extension, always explicitly use the version you want.