windows CMD(命令提示符)无法进入桌面

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39129178/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:39:45  来源:igfitidea点击:

CMD (command prompt) can't go to the desktop

windowscmd

提问by David Powell

when I open the commend prompt the default line is this

当我打开推荐提示时,默认行是这个

C:\Windows\system32>

and I'm using SASS to convert a .scss file located located on my desktop.

我正在使用 SASS 转换位于我桌面上的 .scss 文件。

I know the default line should be saying something like this C:\Users\the name of my machine

我知道默认行应该是这样的 C:\Users\the name my machine

I type c:\Users\MyName\Desktop and hit enter I get this

我输入 c:\Users\MyName\Desktop 并按 Enter 我得到这个

'c:\Users\MyName\Desktop' is not recognized as an internal or external command, operable program or batch file.

'c:\Users\MyName\Desktop' 不是内部或外部命令,也不是可运行的程序或批处理文件。

Edit: Just for the guy who voted the question down, You could have just voted to migrate it to programmers stack exchange as I don't have the privileges. The question was answered before I learned about it not being suitable for the community and it also serves a help for the stack overflow community.

编辑:对于投票否决这个问题的人,您可以投票将其迁移到程序员堆栈交换,因为我没有特权。这个问题在我了解到它不适合社区之前得到了回答,它也为堆栈溢出社区提供了帮助。

回答by Samuel

You need to use the change directory command 'cd' to change directory

您需要使用更改目录命令 'cd' 来更改目录

cd C:\Users\MyName\Desktop

cd C:\Users\MyName\Desktop

you can use cd \dto change the drive as well.

您也可以cd \d用来更改驱动器。

link for additional resources http://ss64.com/nt/cd.html

其他资源的链接 http://ss64.com/nt/cd.html