Jump to content

I need some Batch Scripting Help

- - - - -

  • Please log in to reply
No replies to this topic

#1
CyleIsNOTAfraid

CyleIsNOTAfraid

    Newbie

  • Members
  • Pip
  • 1 posts
I'm trying to make a program that launches google chrome and the website you want. But for some reason, it wont open the website.

Heres the code:

@echo off

echo Welcome, Do not put ( .com / http://www. / ECT. )

echo The program will do that for you.

echo.

echo.

set /p webpage = I want to browse: 

cls

echo Starting Webpage

ping localhost -n 1 >null

cls

echo Starting Webpage.

ping localhost -n 1 >null

cls

echo Starting Webpage..

ping localhost -n 1 >null

cls

echo Starting Webpage...


start chrome.exe www.%webpage%.com

So. What I'm trying to do is make the program start chrome.exe and start the website that you desire. I also made it so you dont need the .com /www. tags. So, What error did I make in this script? And how do I fix it. (Post the code to the thread if you can)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users