![]() Selecting the Command Processor folder, create a new â String Valueâ with the name Autorun by Edit â New â String Value.Go to path Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor.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). 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.This change the Target path to %windir%\system32\cmd.exe /k "cd C:\".Why The command prompt window on opening in C:\Windows\System32\run: C:\Windows\System32\run>cd. Open the command prompt shortcut location as described in way #1. When I open cmd directly in folder run, it works perfect.Change the Target folder of the command prompt: 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. Select PROPERTIES: Whats the CREATED date displayed on the resulting GENERAL tab 2. In File Explorer WinKey+E, navigate to & right-click on: C:Program Files (x86)Norton Security ![]() 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. When he isn't working on a computer or DIY project, he is most likely to be found camping, backpacking, or canoeing.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. He has designed crossovers for homemade speakers all the way from the basic design to the PCB. He regularly repairs and repurposes old computers and hardware for whatever new project is at hand. He enjoys DIY projects, especially if they involve technology. He also uses Proxmox to self-host a variety of services, including a Jellyfin Media Server, an Airsonic music server, a handful of game servers, NextCloud, and two Windows virtual machines. He has been running video game servers from home for more than 10 years using Windows, Ubuntu, or Raspberry Pi OS. Nick's love of tinkering with computers extends beyond work. In college, Nick made extensive use of Fortran while pursuing a physics degree. Before How-To Geek, he used Python and C++ as a freelance programmer. He has been using computers for 20 years - tinkering with everything from the UI to the Windows registry to device firmware. Nick Lewis is a staff writer for How-To Geek.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |