In this post i will cover up the methods so that you can open your files as well as the folders from the run window instead of navigating through the whole path of the folder or the file. It is very time consuming and a boring work to open a folder which is present inside many folders specially if you open it often so to make your work simple you can follow the methods. Actually there are three methods to do so, out of which only two methods work with both files and folder. The third method only applies to files and includes the use of registry so i will cover it up in my next post.
- Simple copy the file/folder of which you want to create the shortcut to C:\Windows\ (Or in whichever drive your windows folder is) and you are done.
- Copying the file/folder to windows will definitely consume your space in C drive so instead of copying the file/folder you can create it's shortcut by right clicking on it and selecting create shortcut and then put that shortcut in windows folder. This will save your space.
- Now to open it simple open run window by pressing the windows key+R and type the name of the file/folder or the shortcut file to open it.
#Method 2
- This method is bit more complicated than the method 1 so follow carefully.
- Click on start and then right click on my computer and then on Properties.
- Now click on Advanced system settings in the left pane. (Windows XP users don't need to follow this step)
- Now click on Advanced tab from the top of the new windows opened and then click on Environment Variables... present at the bottom of that window.
- Now under User variables click on New...
- Now in Variable name: type any name which you want to use to open file/folder and in Variable value: type the complete path of the file/folder (do not forget to use the extension of the file in the path) and click OK and you are done.
Example: If the file name rohit.jpg is present in D drive then in variable name you can type technocrat (or any other name you want) and in the variable value type D:\rohit.jpg and click OK.
- To open the file/folder press windows key+R to open run window and type the name you typed in variable name between the two % sign and click OK.
Example: In our case type %technocrat% to open rohit.jpg
This is only applicable to files and includes the use of registry so i will cover it up in my next post. With a little tweak you can make it work with folders as well....you can read this method post from here.
Note:
- Do not forget to use the extension (like .jpg, .exe etc.) in case of files.
Rohit i think you deliberately avoided using CLI else the 2nd method would have been simpler :)
ReplyDelete@Anshul
ReplyDeleteReasons:
1. Many people prefer GUI over CLI.
2. Using CLI requires rebooting/relogin while using GUI works immediately.
Anyways it will be great if you would like to share the CLI method with us so that i can update the post..:)
hmmm i agree with your reasons Rohit,
ReplyDeletethe CLI method of setting an enviroonment variable goes like this-
open command prompt ( Win+R >> type 'cmd' >> enter )
type >> set variable=value
i know this much is enough for you to update the post ;)
thanks for your reply...i will update the post soon with your reference in it :)
Delete