在Windows 7中更改命令提示符的默认启动目录 [英] Changing default startup directory for command prompt in Windows 7
本文介绍了在Windows 7中更改命令提示符的默认启动目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Windows 7中更改命令提示符的默认启动目录?
How do I change default startup directory for command prompt in Windows 7?
我通常会执行以下操作从C:\
I usually do the following to start command prompt from C:\
WIN-R (Run Prompt)
cmd /K cd C:\
我要执行以下操作以从C启动命令提示符:\
I want to do the following to start command prompt from C:\
WIN-R (Run Prompt)
cmd
推荐答案
同时添加自动运行项到 HKEY_CURRENT_USER\Software\Microsoft\像Shinnok的回答那样的命令处理器
是它也可能真的搞砸了,您确实应该尝试使用cmd.exe作为子进程来检测简单的cmd.exe启动与脚本/程序:
While adding a AutoRun entry to HKEY_CURRENT_USER\Software\Microsoft\Command Processor
like Shinnok's answer is the way to go it can also really mess things up, you really should try to detect a simple cmd.exe startup vs a script/program using cmd.exe as a child process:
IF /I x"%COMSPEC%"==x%CMDCMDLINE% (cd /D c:\)
这篇关于在Windows 7中更改命令提示符的默认启动目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文