I have been trying to use the utility EC.EXE to capture command-line error messages to a file. I'm having two difficulties:

first, EC crashes if the file pathnames in the command have any spaces. E.g.

EC "c:program filesexecutable.exe"

doesn't work.

Second, there seems to be a limit on the length of the command line EC can accept. It seems to work or not depending on the length of the pathnames. Is that correct?

Chuck Smythe

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Cannot help you with EC, but perhaps you can trap your error message by using command line redirection of standard error. Depends on your OS I believe.


I can reproduce the problem with the embedded spaces. I'll ask the engineer who wrote it why this is.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today