在命令提示符下更改目录 [英] Change Directory in command prompt

查看:166
本文介绍了在命令提示符下更改目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从cmd更改目录



示例我想将 C:\ 驱动器设置为 D:\\ \\ my folder\common\myimg.jpg



注意:D:\ 我的文件夹 \ commonmon \\ / $
包含文件夹名称中的空格是否允许,如果是,那么如何

how to change the directory from cmd

example i want to set C:\ drive to D:\my folder\common\myimg.jpg

Note: D:\my folder\common\
contains space in folder name is it allowed if yew then how

推荐答案

您应首先更改驱动器,然后发出更改目录命令,即:

You should first change drive, then issue the change directory command, namely:
d:
cd "\my folder\common"



或者其他


or else

cd /d "D:\my folder\common"





您必须使用双引号(),因为您的文件夹名称包含空格。



You have to use double quotes (") since your folder name contains blanks.


请按照以下步骤操作...





Follow these procedures...


c:\documents and settings\sun>

c:\documents and settings\sun> cd\          

c:>

c:.>d:

d:>

d:> cd my folder

d:\myfolder>cd comman


d:\myfolder\comman>



来自这里你可以访问目录中的文件。



希望它能帮到你


from here u can access the files in the directory.

Hope it will help you


这篇关于在命令提示符下更改目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆