Changing default startup directory for command prompt in Windows 7

后端 未结 23 2000
情深已故
情深已故 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 20:06

    This doesn't work for me. I've tried this both under Win7 64bit and Vista 32.

    I'm using the below commandline to add this capability.

    reg add "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d "IF x"%COMSPEC%"==x%CMDCMDLINE% (cd /D c:)"

提交回复
热议问题