Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

windows

cmd

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.

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

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

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

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.

like image 356
David Powell Avatar asked Aug 24 '16 17:08

David Powell


People also ask

How do I go back to Desktop in CMD?

Often when opening the command prompt window, you automatically be placed in the (username) directory. Therefore, you only need to type cd desktop to get into the desktop. If you're in any other directory, you would need to type cd \docu~1\(username)\desktop to get into the desktop.

How do I restore a closed Command Prompt?

Press Windows key + X > Task Manager or Control + Shift + Esc. Click File > Run new task, type: cmd then hit Enter. If you need to open it with administrator privileges, hold down the Control key while clicking Run new task. From within File Explorer, you can type CMD in the Address Bar then hit Enter.

How do I force a Command Prompt to open?

One of the quickest ways to open Command Prompt in Windows 11 as well as Windows 10 is via the Run window. Press the Win + R keys on your keyboard, then type cmd, and press Enter on your keyboard or click/tap OK.


1 Answers

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

cd C:\Users\MyName\Desktop

you can use cd \d to change the drive as well.

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

like image 99
Samuel Avatar answered Oct 15 '22 17:10

Samuel