GeekTech

Monday, April 6, 2009

RUN Prompt: Launch any application FAST!

If you are like me and are becoming more and more obsessed by doing every single task on your computer with your keyboard instead of your mouse, then I just thought up and tested the best thing for you.

Ever noticed those little underlines under certain letters in menus? If you didn't know, those are the keyboard commands to navigate an entire program with out using the mouse. In each program, no two menu options use the same letter, or at least they try not to. In case it does, the highlighter will flip back and forth between the options as you press that letter. If you've never experienced this awesome thing before, go ahead and hit ALT + F, or ALT and then F to open your browser's File menu. Don't hit X or else that will close down the program (that's usually standard).

Ok, enough of the basics. How do you get flying fast with launching applications. Well you know that in command prompt it's natural directory defaults to the system32 folder where some common programs are stored - like mspaint, sol, and notepad. When you go to Start --> Run, and you simply type "notepad" (even without the ".exe") it launches that program.

Well I prefer to quickly launch something via the keyboard rather than picking up my stylus (since I don't have a mouse) clicking to activate it's control, finding the mouse on one of my dual monitors, dragging it over the the secondary monitor to click start, etc, etc, etc, etc. So it is much faster to just type something real fast and go.

In windows, you can launch ANYTHING from the RUN prompt. But to formally do it, you have to type the complete path with colons, backslashes, and the .exe extension. So why can't you do it just like - "notepad" and have it launch? Well you can!

Go to the folder - C:\windows\system32 - and create a new text file from the file menu
Or if you're like me, press the following while doing the hokey pokey...
Windows Key + E;
TAB;
L; (if you have one hard drive)
L; (only if you have two hard drives)
Enter;
W;
Enter;
S (8 times);
Enter;
ALT + F;
ALT + W;
ALT + T;

...it really is faster to do it with key strokes.

Anywho, rename that new text file to the name of the program that you want to launch and end it with a [dot]bat extension. My example here would be Firefox.

firefox.bat

It will most likely warn you about changing the file extension and becoming unusable. It's ok, just say yes. If you want, shorten the name of that file to "ff.bat" so you can reduce the amount of keys you have to type to launch your program. It's your file, you do whatever you want.

Now right click that file (or hit the context menu key on the keyboard and then hit "E") which will open a blank notepad.

HERE'S THE IMPORTANT PART!!!!
Inside of notepad typ the following:
start "" [path]

That is "s-t-a-r-t SPACE doublequote-doublequote SPACE [path]
Now [path] should be replaced with the complete path to wherever your program is installed including the drive letter and file extension AND the whole path must be in double quotes! Obviously, the batch file should not contain the brackets.

Example: (still for firefox)
start "" "C:\program files\mozilla firefox 3 beta 2\firefox.exe"
(s-t-a-r-t SPACE doublequote-doublequote SPACE doublequote-c-COLON...........)

Save the file once you've added this one line and then close notepad. Type the following (in no program)...
Windows Key (the flag) + R (hit them at the same time);
type "firefox";
hit Enter;

Voila! A new instance of Firefox should open. I even have these set to Thunderbird, Audacity, Photoshop, Premiere, and VMware. It works!

Labels: , , , , , ,

posted by Brice Helman at 10:02 PM

0 Comments:

Post a Comment

<< Home