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

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
xyzzy_rad
New Member
Posts: 2
Joined: Wed Sep 04, 2013 11:03 pm

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

Post 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!
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

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

Post by psguru »

Yes, don't run examdiff.exe, just examdiff (which will invoke examdiff.com, the command line shell).
psguru
PrestoSoft
xyzzy_rad
New Member
Posts: 2
Joined: Wed Sep 04, 2013 11:03 pm

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

Post 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!
richelle21
New Member
Posts: 2
Joined: Thu Apr 03, 2014 6:46 am

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

Post 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.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

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

Post 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.
psguru
PrestoSoft
richelle21
New Member
Posts: 2
Joined: Thu Apr 03, 2014 6:46 am

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

Post 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!
MudGuard
Expert Member
Posts: 69
Joined: Mon Jun 07, 2004 12:42 am

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

Post 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.
Post Reply