Changing default startup directory for command prompt in Windows 7

后端 未结 23 2083
情深已故
情深已故 2020-11-30 19:50

How do I change default startup directory for command prompt in Windows 7?

I usually do the following to start command prompt from C:\\

  WIN-R (Run Promp         


        
23条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 20:04

    regedit worked great. HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\Command Processor, all you have to do is change the AutoRun key value, which is already set to wherever you are currently getting dumped into to a new value in the format of:

    cd /d 
    
    for c:\, that would be cd /d c:\
    for junk, that would be cd d/ c:\junk
    

    its very simple, even a novice thats never used regedit should be able to figure it out. if not, go to the c:\prompt and just type in regedit, then follow the path to the key.

提交回复
热议问题