Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   Batch Script + Wget to download web pages (http://www.go4expert.com/forums/batch-script-wget-download-web-pages-t23228/)

Cleptography 7Sep2010 02:46

Batch Script + Wget to download web pages
This simple script uses wget.exe to download and covert links from a web page.
Wget has much more advanced options, than the one I use in this script, but it serves my general purpose.


@echo off

if exist "%ProgramFiles%\GnuWin32\bin\wget.exe" goto :Check_Command_ARG
goto :ERROR_1

if [%~1]==[] goto :ERROR_2

:: ELSE---
set Use_WGET="%ProgramFiles%\GnuWin32\bin\wget.exe"
set With_Arguments=-p --convert-links %~1

%Use_WGET% %With_Arguments%
goto :EOF

echo.Wget.exe was not found in your path!!!
goto :EOF

echo.No Address was specified!!!
echo.USAGE: DLPage google.com
goto :EOF

All times are GMT +5.5. The time now is 20:26.