Instructables

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
pause>nul

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

kelseymh1 year 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)  frollard1 year 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!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!