Dragging and dropping folders and files into the Run line:
If the Run line is open (make sure it is empty) folders or files can be dragged and dropped on it from an open folder window. The full path of the dropped object will be inserted into the Run line and clicking "OK' or pressing the "Enter" key will open the dropped file or folder. Although this feature presents no particular advantage in general, it can be helpful to those who have trouble with double-clicking the mouse.
Adding applications to the Path:
The ability to enter a short file name into the Run line to open a program can be extended to any program by putting the folder containing the program executable into the path. Adding folders to the path is described here.
Alternatively, the Registry can be edited to explicitly contain the path to the desired executable file or files. The Registry key involved isHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths
1. Create a new sub-key with the name of the executable file that you wish to add to the path. e .g., HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\somefile.exe
2. In this new key, add a string variable named "Path" containing the value of the the path to your new executable file, e.g., C:\Program files\newprogramfolder\
3. The new key will already have an empty variable (Default). Edit it to have the string value of entire address of the new program executable , e.g., C:\Program files\newprogramfolder\somefile.exe
You can now enter "somefile.exe" into the Run line to open the program. An example of what the Regedit entries look like is shown in the figure below. I have added a chess game with the executable "winchen.exe" to the path.
A number of files are likely to have already been added on your system. Many applications place themselves here when they are installed. Examples are Microsoft Office components. It is sufficient to enter "winword" into the Run line to open Microsoft Word or "excel" to open Microsoft Excel.
Internet Applications:
If you are connected to the Internet, entering an URL into Run opens Internet Explorer (or other browser if it is properly associated) and takes you right to the appropriate web site. The "Browse" function can be used to go to your Favorites folder and you can then click on a link. (Be sure the Browse function is showing "All files" as the file type.) On some systems it will even initiate a Web connection if you are not already on-line. You can also start e-mail by entering “mailto:someone@somewhere.com”. This will open a blank new e-mail with the address already entered. If you want to use an e-mail client other than the Microsoft application Outlook Express, it will have to be associated with the “mailto” function. Many e-mail clients do this automatically when they are installed. (As far as I know, this does not apply to AOL.)
Google supports a command line function that allows for simple searches on on a single term. Enter "www.google.com/search?q=%1" into the Run line, where %1 is the term that is being searched. A dash can be used to combine words. For example, try "www.google.com/search?q=windows-registry" (Omit the quotes.)
Comparison of Run with the Command Prompt:
Although a great many commands can be executed in either the Run line or a command prompt, some commands will run directly only in one or the other. Commands which are built into the command interpreter cannot be entered in the Run line without first invoking cmd.exe. They are listed here. These include commands like "dir" and "del". Certain special features of the Run line such as the direct way of opening folders or the Internet shortcuts discussed above do not work in a command prompt unless prefaced with the command "Start".
Accessing the Command Shell from Run:
The command interpreter can be invoked to carry out a command from the Run line by entering cmd /c some_commandWith the switch "/c", some_command will be carried out and the command shell will then close. If you want the command shell to remain open, use the switch "/k". Enter cmd /k some_command.
The Run Line in Vista:
The Start menu in Vista has no Run line in its default setting. Many of the functions of Run can be carried out in the new Search function that is at the bottom of the Vista Start menu but I still like to use Run sometimes. You can get Run back temporarily by using the keyboard shortcut Windows key+R. To put Run permanently back in the Start menu :
1. Right-click on the Start menu and choose "Properties"
2. Select the "Start Menu" tab and click on the "Customize..." button
3. Check the "Run command" option

No comments:
Post a Comment