
- #HOW TO CHANGE DEFAULT PROGRAM BOX UPDATE#
- #HOW TO CHANGE DEFAULT PROGRAM BOX WINDOWS#
Go to path Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor. #HOW TO CHANGE DEFAULT PROGRAM BOX WINDOWS#
Open registry editor by typing regedit in Windows search bar and press Enter.Though updating the default cmd path in registry is a simple step, we do not recommend to do so unless you have not followed point #2. This will change the default directory path in command prompt when run as administrator. %windir%\system32\cmd.exe /k "cd E:\TechSupportWhale & E:" In this case, my target directory is in E drive (not C drive where Windows is installed).
#HOW TO CHANGE DEFAULT PROGRAM BOX UPDATE#
If your desired directory path is in a different drive, then you must update the path as below. %windir%\system32\cmd.exe /k "cd C:\TechSupportWhale" In my case, my target path is C:\TechSupportWhale If your new path is in C drive (where the Windows is installed), then set the below path. Whenever we use Open With option to open a file in Windows, it shows a dialog box containing a list of installed programs to choose from.There is also a checkbox Always use the selected program to open this kind of file given at the bottom of this dialog box which is used to set the selected program permanent to open that file type. This change the Target path to %windir%\system32\cmd.exe /k "cd C:\". Open the command prompt shortcut location as described in way #1. Change the Target folder of the command prompt: Read also: Metadrive – A must-have Google Drive Add-on 2. But this does not work if the command prompt is opened as administrator. Note: This way of changing the default directory works only when you open the command prompt in normal mode. Verify by opening the command prompt again and the path is changed.
Change the ‘ Start in‘ field under the Shortcut tab as shown below and click OK.
Right-click on the Command Prompt shortcut and open the properties. Search for command prompt in Windows search.
In the below 3 ways that I have shared, the default path of cmd will be changed no matter if you have opened cmd in administrative mode. Steps to change the default directory of command prompt:Ĭhanging the default path of cmd is very simple and some steps may not work when you open the command prompt as administrator. If you want to change the default directory of the command prompt to some other folder, here are 3 simple steps to do so.