Open your favorite sites directly from Windows XP run dialog box

how to use windows xp run dialog as search box

After seeing DI’s Open Your Favorite Websites Directly from Windows Vista Start post, I thought why not use Windows XP Run dialog box as a search box. So here is a simple trick that can enable you to open your favorite sites directly from XP’s run dialog box.

Using this trick you can type “g bbc” to directly open BBC website in firefox / IE.

First step is to create a batch file with the following text:

For Firefox users:
"C:\Program Files\Mozilla Firefox\firefox.exe" "http://www.google.com/search?btnI=I'm+Feeling+Lucky&q=%1"

For IE users:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" "http://www.google.com/search?btnI=I'm+Feeling+Lucky&q=%1"

Save the file anywhere (preferably in C:\Program Files) with a name “g.bat”. The above one line of code essentially starts Firefox or IE and requests Google to fetch your favorite site using “I am feeling lucky” feature. The “%1” towards end tells windows to get the first parameter followed by “g” and passes it to Google.

Before you can use this you just need to modify your environment variables. For this:

1. Right click on “my computer” and select properties
2. In the dialog box go to “advanced” tab and click on “environment variables” button
using_xp_run_as_search2
3. Select “path” from system variables and click “edit” button
using_xp_run_as_search3
4. Append “;C:\Program files” (if you have saved the batch file in some other directory mention that path here) to the path in the end (dont forget the ; before C: )
using_xp_run_as_search1
5. Click OK all the way back.

Now you can use run dialog box as Google search bar with “I am feeling lucky”, You can use the same trick to do searches on ebay, amazon, imdb, yahoo or wikipedia or anything else.

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

7 Responses

  1. Thanks. I think I’d prefer to fire up a firefox/safari and just search using the in-built google bar.

    Aren’t you using the macbook?

  2. Great tip? But instead of doing the environment variable thing. Just copy the g.bat that is the batch file in windows folder and you can run is without any other issue.

    Thanks by the way. keep up the good work

  3. @Hypnos – oh yeah, you always have that option, btw, I use PC @ office, so ended up experimenting this…

    @Sukhbinder Singh – welcome to PHD 🙂 We can always copy the batch file to system folders, often access to the folder may be limited based on user levels, thats why I mentioned program files or something like that. But good idea there 🙂

    @Nikhil … oh sure, it would be the same way, just write 10 lines in the batch file instead of one and it works, alternatively if you are using firefox, you can change your options to load a bunch of bookmarks on start up.

  4. Hola

    Mi nombre es Javier Polo Pérez y soy Ingeniero, y desde hace varios años me dedico a la Informática de Gestión. He desarrollado varias soluciones informáticas que en el Mundo Hispano han obtenido una buena acogida debido a sus prestaciones y fácil manejo, muchos ya las conocerán sus nombres son: Clinicas @Clinic @OdontoClinic @PsicoClinic @PodoClinic @FisioClinic Inmobiliarias InmoServer Facturacion ProServer @GesPYME Comunidades AdmiCom Veterinarias @VetGes Promocion GesProm Prevencion PrevGes Almacen @GeSTOCK Personal @GesRRHH Turismo @GesTUR

    Me gustaría comentar que tras un año de pelea con Windows Vista intentando adaptar mis programas a dicho sistema operativo, lo cual he conseguido con mucho esfuerzo, finalmente he vuelto con mi Windosw XP, por tanto si lo que desean es un sistema operativo estable que no de ni un solo problema lo recomiendo.

    Si desean ver mi trabajo y descargarse mis programas en forma gratuita pueden acceder a la web del Club ReM su dirección es http://www.clubrem.es o en http://www.e-rem.net

    Un Saludo

    Javier Polo

  5. Hi,
    I love this idea, what I would really like is to add this to the right click of a folder, e.g. look up movie names in imdb. By making a shortcut of your batch file in the “send to” menu it will pass to %1 but it passes the complete path.
    Do you know of any way to pass just the folder name?

    Cheers.
    C.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.