Changing default startup directory for command prompt in Windows 7

后端 未结 23 2019
情深已故
情深已故 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条回答
  •  既然无缘
    2020-11-30 19:59

    My default dir was system32 when starting CMD. I then created a batch file in that directory to change dir to the one I was after.

    This caused me to always call that bat when starting CMD every time. So I made a reg file & put this inside:

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
    "Autorun"="cd C:\\Users\\Me\\SomeFolder"
    
    

    After saving it, I opened the file, clicked ok to merge with registry, and since then every time I open CMD, I get my dir

提交回复
热议问题