Using the Command Line Interface

How to Check a Website Using the Starting URL

To scan a URL, enter the following command in the command line:

weblv.exe -url="URL"

For example:
 weblv.exe -url="https://www.relsoftware.com/"
 C:\Program Files\WLV\weblv.exe -url="https://www.relsoftware.com/"


How to Check a Website Using an Earlier Created Profile

To scan a .wlvs files, enter the following in the command line:

weblv.exe "filename.wlvs" [/start] [/auto] [/noclose]

If the "/start" key is specified, the verification process will be initiated on the program startup.
If the "/auto" key is specified, the program will be launched in the automatic mode, e.g. all confirmation messages will be ignored, all results will be logged to a file and the program will be shut after fulfilling the job (use the "/noclose" key to avoid this).

For example:
 weblv.exe "save\example.wlvs"
 weblv.exe "save\example.wlvs" /start /auto
 weblv.exe "save\example.wlvs" /start /auto /noclose


How to Generate a HTML Report

To generate a HTML Report, enter the following in the command line:

weblv.exe "filename.wlvs" -ReportFile="filename.htm"

For example:
 weblv.exe "Example.wlvs" -ReportFile="Report.htm" /start /auto

To specify the kind of the report, enter the following in the command line:

weblv.exe -ReportList="REPORT_ID_1;REPORT_ID_2;REPORT_ID_N"

Report Name

Report ID

Profile Information

PS1

Profile History

PH1

Statistics

ST1

Broken links

BL1

Pages with broken links

BL2

Pages with spelling errors

SP2

Pages with missing titles

MT1

Duplicate titles

DU1

Bad bookmarks

BM1

HTML Syntax

HQ1

Slow pages

SL1

Slow pages (detailed)

SL2

Small pages

SM1

New pages

NP1

Old pages

OP1

Deep pages

DP1

Failed page rules

PR1

Pages with failed page rules

PR2

Orphaned files

OA1

List of processed pages

PL1

Processed pages (detailed)

PP1

List of redirected links

RL1

Redirected links

RL2

Pages with redirected links

RL3

List of external links

EL1

External links

EL2

Pages with external links

EL3

Directory tree

DT1

Link tree

UT1

Site map

MP1

For example:
 weblv.exe -ReportList="PS1;BL2;BM1"
 weblv.exe "Example.wlvs" -ReportFile="Report.htm" -ReportList="PS1;BL2;BM1;RL3;DT1" /start /auto

Note: The quotation marks are needed only if there are spaces in the path or file name.


Reports and profiles emailing settings

Recipient=

The address to send the email to.
E.g.: -Recipient="John Doe <john.doe@relsoftware.com>"
If no address is specified here, the report/profile will be emailed to the address specified in the profile or in the program's settings.

SendMode=

There are three possible options for emailing the reports:
1) always : email all reports.
2) broken : email the report only if any broken links have been found.
3) masks : email the report if the broken links descriptions meet the criteria specified by the masks contained in the current profile.
E.g.: -SendMode=always
By default the '-SendMode=broken' key is used.

AttachType=

Specifies the kind of the file to be attached.
1) report : report
2) wlvs : current profile
E.g.: -AttachType=wlvs
By default the '-AttachType=report' is used.

AttachFile=

Use this key to attach a custom file; the full path to the file to be attached must be specified (used instead of the '-AttachType=' key).

/SendMail

Send an email message even if the profile is not set up for sending emails.
Note: May be omitted if the '-Recipient=' key is used.

/NoSendMail

Do not send any emails even if the profile is set up for emailing reports or profiles (can be required very infrequently).

For example:
 weblv.exe "filename.wlvs" -ReportFile="filename.htm" -Recipient="John Doe <john.doe@relsoftware.com>" /start /auto


How to Save the Program's Settings in a Specific Folder

By default, Web Link Validator saves all the global settings (Options) in the State.ini file. Every user that runs a copy of Web Link Validator can save his/her .INI file in a specific folder by running the application with the -IniDir parameter in the command line.

weblv.exe -IniDir="c:\path\to\dir"

For example:
 weblv.exe -IniDir="c:\documents\wlv\options"
 weblv.exe -IniDir="%userprofile%"


How to Specify the Path to the Default Profile

The default profile allows you to specify the settings used for creating new profiles.

You can specify the path to the default profile in the command line using the '-defaultprofile=' key. Please note that the default profile specified in the command line has a higher priority than the default profile specified through the menu Options -> Website Verification -> Default Profile.

weblv.exe -defaultprofile="c:\path\to\profile"

For example:
 weblv.exe -defaultprofile="c:\documents\wlv\settings.wlvs"
 weblv.exe -url="https://www.relsoftware.com -defaultprofile="settings.wlvs" /start /auto


How to Export the Data

To export the data, enter the following in the command line:

weblv.exe "filename.wlvs" -ExportFile="filename.ext" -ExportType=TXT|HTM|RTF|XLS|CSV

For example:
 weblv.exe "Example.wlvs" -ExportFile="ExportExample.ext" -ExportType=HTM /start /auto

To export the data to CSV format, enter the following in the command line:

weblv.exe "filename.wlvs" -ExportData="c:\path\to\dir"
(the same as File - Export - Export the data to CSV format)

Note: The specified directory ("c:\path\to\dir") must exist.

For example:
 weblv.exe "Example.wlvs" -ExportData="c:\documents\website\data" /start /auto


How to Use the Command Line Interface for Link List Mode

weblv.exe -LL_ImportFile=filename.txt -LL_ImportType=TXT|HTM -LL_ExportFile=filename.htm -LL_ExportType=TXT|HTM|RTF|XLS|CSV [/start] [/auto] [/noclose]

For example:
 weblv.exe -LL_ImportFile="c:\path\ListOfLinks.htm" -LL_ImportType=HTM -LL_ExportFile="c:\path\Result.txt" /start /auto