Is it possible to create a batch file thats check if a website / url redirect to another site?
for example check if http://www.google.com/ redirect to http://www.google.com/randomsite.php/ and i would be great if it could do a status like:
www.google.dk/ Redirects to www.google.dk/randomsite.php/
for example with echo and some varible like:
echo %Google1% Redirects to %Google2%
And that would look like this
www.google.dk/ Redirects to www.google.dk/randomsite.php/
There are no built-in tools in Windows, but if you download a Windows compatible version of curl, you can use that to print the headers. This blog article seems a good place to start.
For example:
If found, the %ERRORLEVEL% variable will be greater than 0, so you can check that.