I can not figure out why this batch file will not work!!!!!!

@echo off
cd C:\Windows\System32
set addr=
set /p ADD=%addr%
ping http://www.%ADD%.com

It types the address correctly, but there is always an error to prevent it from pinging! Please Help!

kelseymh4 years ago
|ping| doesn't take a URL as argument. It takes an IP address or a hostname. For example: ping www.instructables.com.
+1...nix the http://
Butterfingerz21 (author)  frollard4 years ago
Thank you so much!! It was really bugging me that i couldn't figure out how to make it work!
If it works, make sure to mark the question answered!