samedi 28 mars 2015

How to examine return value of wget in windows

How do I convert the below code into CMD line code for windows?



r=`wget -q www.someurl.com`
if [ $r -ne 0 ]
then echo "Not there"
else echo "OK"
fi

Aucun commentaire:

Enregistrer un commentaire