当我打开命令提示符时,它默认为我的 H 驱动器,而当我使用 cd /c: 时,它不会更改为 C 驱动器。请需要帮助我已经尝试了以下命令 regsvr32 /u msolap.dll 谢谢
Dav*_*ill 17
cd /c:它时,它不会更改为 C 驱动器。注意上面的命令是错误的,应该是cd c:\or c:/。
如果除了更改目录之外还想更改当前驱动器,请使用以下/d选项:
cd /d c:\
Run Code Online (Sandbox Code Playgroud)
除了更改驱动器的当前目录外,还可以使用 /D 开关更改当前驱动器。
例子:
F:\test>cd c:\
F:\test>rem drive doesn't change
F:\test>cd /d c:\
c:\>rem drive changes
Run Code Online (Sandbox Code Playgroud)
cd 用法c:\>cd /?
Displays the name of or changes the current directory.
CHDIR [/D] [drive:][path]
CHDIR [..]
CD [/D] [drive:][path]
CD [..]
.. Specifies that you want to change to the parent directory.
Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.
Use the /D switch to change current drive in addition to changing current
directory for a drive.
If Command Extensions are enabled CHDIR changes as follows:
The current directory string is converted to use the same case as
the on disk names. So CD C:\TEMP would actually set the current
directory to C:\Temp if that is the case on disk.
CHDIR command does not treat spaces as delimiters, so it is possible to
CD into a subdirectory name that contains a space without surrounding
the name with quotes. For example:
cd \winnt\profiles\username\programs\start menu
is the same as:
cd "\winnt\profiles\username\programs\start menu"
which is what you would have to type if extensions were disabled.
Run Code Online (Sandbox Code Playgroud)
小智 7
在您的“开始”菜单类型上cmd,列表中将显示命令提示符。右键单击它,选择属性。
c:在 Start in 字段中输入而不是%homedrive%%homepath%。单击确定。
完毕。
| 归档时间: |
|
| 查看次数: |
83138 次 |
| 最近记录: |