Update example MS Windows batch file

Run LinkChecker after installing with pip on Python from the MS Store.
This commit is contained in:
Chris Mayo 2020-08-29 16:57:57 +01:00
parent 89613d56f2
commit bfb992fa2b

View file

@ -1,4 +1,4 @@
@echo off
:: example using linkchecker on windows, logging to html
set PYDIR=c:\python26
%PYDIR%\python.exe %PYDIR%\scripts\linkchecker -Fhtml http://www.example.com
:: Do replace the for loop with setting SCRIPTSDIR to the literal path
for /f "delims=" %%i in ('python -c "import site; print(site.getusersitepackages().replace('site-packages', 'Scripts'))"') do set SCRIPTSDIR=%%i
python %SCRIPTSDIR%\linkchecker %*