Got a "errorlevel" staus in exit

139 views
Skip to first unread message

vsy...@gmail.com

unread,
Mar 7, 2009, 1:06:20 AM3/7/09
to VisualWget Help
How got exit status for tell the difference the success or fault
status?

Need be make a command file. For example:
====
wget -N -c http://www.anyfiles.org/likefile1.zip
if %ERRORLEVEL% for_newest_files2.bat

wget -N -c http://www.anyfiles.org/likefile2.zip
if %ERRORLEVEL% for_newest_files2.bat
...

Khomsan Ph.

unread,
Mar 7, 2009, 4:28:22 AM3/7/09
to VisualWget Help
After googling, I found this information that maybe useful to you,
http://support.microsoft.com/kb/69576. The Wget executable will return
zero on success.

On Mar 7, 1:06 pm, "vsy...@gmail.com" <vsy...@gmail.com> wrote:
> How got exit status for  tell the difference the success or fault
> status?
>
> Need be make a command file. For example:
> ====
> wget -N -chttp://www.anyfiles.org/likefile1.zip
> if %ERRORLEVEL% for_newest_files2.bat
>
> wget -N -chttp://www.anyfiles.org/likefile2.zip
> if %ERRORLEVEL% for_newest_files2.bat
> ...

vsy...@gmail.com

unread,
Mar 8, 2009, 11:24:27 AM3/8/09
to VisualWget Help
> After googling, I found this information that maybe useful to you,http://support.microsoft.com/kb/69576. The Wget executable will return
> zero on success.

Well, it's true.
I'm want to get a difference between file updated or not updated on
server.

wget -O file.zip -N -c "http://likefile.zip"
if errorlevel 1 echo File not updated
if not errorlevel 1 echo File updated on disk
Reply all
Reply to author
Forward
0 new messages