Author Topic: .bat file help  (Read 293 times)

Okay, so what I want to do is make a batch file that will ask which site you want to visit, ping it, and automatically 'start' the IP address.  Is there any possible way to do this?  No legitimate reason, I've just been playing around with them lately and I wanted to see if this was possible.
Currently, the closest thing I have is:

Code: [Select]
@echo off
set /p ping1=Please enter the name of the website you wish to access (exclude 'http://www."  and the final "/"):
ping %ping1%
set /p ping2=Please type the IP address exactly as you see it:
start http://%ping2%/

This isn't really close at all, because it isn't automatic, so I wanted to know if this could be done.
Any help appreciated :D