CSE HTML Validator Std/Pro v7.00 BETA 1 Documentation

[ Home | Download | Buy Now | Support | Search Local | Search Online ]

[ Table of Contents ]

Command Line Arguments (Pro, Std, Lite)

The HTML Validator Command Line Processor can be run from a DOS command prompt and will accept arguments passed to it from the command line.

NOTE: Since processing more than one file at a time using command line arguments is inefficient (unless you use the -f command), it is recommended that you use the drag and drop capability or the Batch Wizard to process multiple files. That is, drop the files to process onto the Drag and Drop Window of a running instance of HTML Validator. Use Windows Explorer to select the files to drop, and make sure that HTML Validator is set up to process the dropped files the way that you want (by validating and/or using a tool).

The file to run when using command line arguments is called "cmdlineprocessor.exe". This executable understands command line arguments and will call the validator engine (now in a DLL) to perform the correct job.

Examples of acceptable command lines include:

NOTE: The program options and configuration used to validate a document using a command line are those that are last saved and not necessarily those that are currently active if an instance of HTML Validator is running. This includes validating a document using an HTML Editor that provides integrated support for HTML Validator. If you've made changes to the options or configuration, then make sure that these changes have been saved before calling the validator on a command line.

Exit Codes

When cmdlineprocessor.exe exits, it returns one of the following values:

Special Notes

  1. If you are executing cmdlineprocessor.exe from a DOS prompt, then you must include the path to cmdlineprocessor.exe if the folder that contains cmdlineprocessor.exe is not in the search path, otherwise the system will not be able to find cmdlineprocessor.exe. However, you can type the command in the Start | Run dialog box without a path to the executable (in this case, use htmlval.exe instead of cmdlineprocessor.exe; the system will automatically translate htmlval.exe to the correct executable).
  2. If you are executing HTML Validator's editor from a DOS prompt, then you must include the path to cse70.exe if the folder that contains cse70.exe is not in the search path, otherwise the system will not be able to find the editor. However, you can type the command in the Start | Run dialog box without a path to the executable.
  3. When cmdlineprocessor.exe is run with command line arguments, cmdlineprocessor.exe performs the operation specified by the command line arguments and then immediately exits (unless otherwise noted above for the specific argument).
  4. Be sure to include the full path to filename if it is not in the current folder.
  5. Letters following '-' are not case sensitive. They may be either uppercase or lowercase such as -l or -L.
  6. When validating a file with cmdlineprocessor.exe, holding down the shift key will cause the page source to be opened in the viewer without validating it. This does not apply when -f is used and only works if the option to enable this functionality is checked in the Validator Engine Options (it is enabled by default). (New v7.00)

Opening Files in the Editor

To open a file in the editor, you can call cse70.exe followed by the filename. For example, "cse70.exe filename".

[ Table of Contents ]