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="http://www.relsoftware.com/"
C:\Program Files\WLV\weblv.exe -url="http://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 sorted by link | BL1 |
Broken links sorted by page | BL2 |
Redirected links | RL1 |
Redirected links sorted by link | RL2 |
Redirected links sorted by page | RL3 |
External links | EL1 |
External links sorted by link | EL2 |
External links sorted by page | EL3 |
Pages Processed (Detailed) | PP1 |
Pages with missing titles | MT1 |
Slow pages | SL1 |
Slow pages (Detailed) | SL2 |
Old pages | OP1 |
New pages | NP1 |
Failed page rules sorted by rule | PR1 |
Failed page rules sorted by page | PR2 |
Pages with spelling errors | SP2 |
Filename extensions | FE1 |
Bad bookmarks | BM1 |
HTML Syntax | HS1 |
Orphaned files | OA1 |
Directory tree | DT1 |
For example:
weblv.exe -ReportList="PS1;BL2;BM1"
weblv.exe "Example.wlvs" -ReportFile="Report.htm" -ReportList="PS1;BL2;BM1;RL3;OA1" /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="http://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
|