I would like to have the url call and if test done as batch, draft as shell script below, what would the Windows equivilent of the following shell script look like?
tmp=$( curl -s "http://server.my.lan/test.php" );
if [ $tmp == "0" ]; then
# Windows calls 2 next lines, the action I would like if the URL does not return 0
#net stop "World Wide Web Publishing Service"
#net start "World Wide Web Publishing Service"
fi
What is the Windows equivilent of curl?