open website from command window

Posted on 2003-02-25
Medium Priority
Last Modified: 2012-06-27
Hi folks,

   anybody knows how to execute the following in a batch file

rundll32 url.dll,FileProtocolHandler http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=passing+%26+in+query+string+through+dos+command

    The problem for me here is, it ignores the things after "&". Can anybody tell me how to do this?

thank u
Question by:ksivananth
LVL 86

Expert Comment

ID: 8016873
Did you trying double-quoting the last parameter?

Accepted Solution

tjean earned 150 total points
ID: 8017646
You need to escape the & character. To do that use ^ so the commande line should be:
rundll32 url.dll,FileProtocolHandler http://www.google.com/search?hl=en^&ie=UTF-8^&oe=UTF-8^&q=passing+%26+in+query+string+through+dos+command
LVL 26

Author Comment

ID: 8022877
Thanks tjean, I tried the escape char '^', it just works fine!

Thank u so much!

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question