I was thinking it would be better, if we have a shortcut to open a command prompt in the present/current working directory/folder.
I found two options to do that.
GUI (Windows 7 and above):
- Hold “Shift” keyboard key and “Right Click” your mouse button
- You will find an option “Open Command Window Here”, click on it
- It will open a command window and path would be your current directory
Custom Shortcut:
- Right Click your mouse
- Choose “New”
- Select “Shortcut”
- Enter type the location of the item as “cmd” and click on “Next” button
- Enter type a name for this shortcut as your own custom name e.g. CurDirCmdWindow and click on “FInish” button
- It will create a shortcut with your own specified name
- If you run/double click the shortcut, it will open a command window with the path “C:\Windows\System32” i.e. the default command window directory
- Now, we have to change the default opening directory to the drive where this shortcut located
- I hope you are familiar with %CD% environment variable in windows, which stores the current working directory path. We are going to use this now.
- Select the shortcut and “Right Click” with mouse
- Select “Properties”
- Now shortcut properties windows gets opened
- In “Shortcut” tab, navigate to “Start in:” textbox
- Replace the existing “C:\Windows\system32” with %CD%
- Note: Don’t change the target textbox content
- Click on “Apply” and then on “OK” buttons
- If you run/double click the shortcut, it will open a command window with your current directory as path.
Please send your feedback and comments to psrdotcom@gmail.com
No comments:
Post a Comment