PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: /DropFiles[Next]: /Exclude
\ -> PPWIZARD Command Line -> Switches -> /ErrorFile

Switch /ErrorFile:[+]FileName

This is a PPWIZARD command line switch.

By default ppwizard duplicates any displayed error message to a file called "PPWIZARD.$$E" in the current directory. Again by default this file is not deleted when ppwizard starts but is appended to as required. This facility is very useful for people who don't like the command prompt and use windows explorer or similar (as it can be difficult tell what caused a build failure).

You can turn the error file generation off or change the filename, the directory it gets created in or whether or not it gets deleted or appended to.

The environment variable "PPWIZARD_ERRORFILE" is an alternative way to set the filename. It takes the desired filename (not a file mask). If the filename begins with "+" then the file is appended to and not deleted every time ppwizard starts.

If no parameter is supplied on this switch then error file generation is turned off otherwise the format is exactly the same as that described for the environment variable.

Note that this switch can only take effect from the time that ppwizard is processing the command line and has seen the switch, so it can not handle any errors that occur before this. You may wish to use the environment variable to set it and in any case use this switch as early as possible on the command line.

Another thing to keep in mind is that output to the file only begins after ppwizard has detected an error so some "context" information may be lost in which case you should have a look at the /ConsoleFile switch as well.


In the following example we use the switch to specify a new name and directory for the error file and we don't want to keep appending to it:

ppwizard *.IT /ErrorFile:out\PPWIZARD.ERR /Output:OUT\*.html

This shows how the error file generation can be turned off:

ppwizard *.IT /ErrorFile /Output:OUT\*.html

email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: /DropFiles[Next]: /Exclude

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am