如何在命令行中获取C:/ [关闭]


-3

我在Windows 10上。

我想要做的是通过Windows上的命令行加载Adobe Dreamweaver扩展。我想导航到C:\ Program Files \ Adob​​e \ Adob​​e Extension Manager CSx \

我按照这里的说明操作。

如果我选择命令提示符(管理员),我得到 C:\Windows\system32>

如果我选择命令提示符,我只会得到 C:\Users\USER>

我怎么去 C:\

这就是正在发生的事情。 见屏幕录制


2
你已经在C:\了 - >只是告诉你你正在提示那个驱动器。
Ken White

你不能得到C:/因为/不是Windows上的路径分隔符
phuclv

实际上,路径分离器是U + 005C,在大多数英语系统上应该是\但是根据本地化和代码表可以显示为各种字符(包括/,虽然相当不常见)。
Ruscal

1
在视频中,您将目录更改为系统驱动器的根目录。您的问题毫无意义,您已经知道如何根据自己录制的视频导航到根目录
Ramhound 2017年

1
所以你明显改变了你的问题。肯回答之后?我很想恢复原来的版本,但是从当前版本中添加了一些细节,因为问题很混乱,因为你问的是如何做某事并在你的例子中做了所谓的事情。
Ramhound 2017年

Answers:


4

键入cd \将使您从驱动器上的任何文件夹移动到该驱动器的根文件夹。

如果您在C:\Windows\System32,请键入cd \并按Enter以移动到C:\

如果路径有空格,请用双引号将其括起来。所以,在你的情况下,从C:\Users\YourName,键入cd "\Program Files\Adobe\Adobe Extension Manager CSx\"然后Enter

其他有用的选择:

键入cd ..将你移动一个级别,从当前目录(例如,从C:\Windows\System32C:\Windows

打字cd \newfolder将您移动到新的相对于驱动一个根文件夹(例如,从C:\Windows\System32C:\Users\YourName,类型cd \Users\YourName)。

键入cd /d d:\temp将在一个操作中更改驱动器和目录(例如,从C:\UsersD:\temp

键入cd /?以获取更多选项命令提示符。


cd /?给了我正在搜索的信息,谢谢!
gsamaras

如果您在Z驱动器中并且想要到达C驱动器,请键入:C:
JohnAndrews

0

cd "C:\Program Files\Adobe\Adobe Extension Manager CSx\"

cd代表更改目录。它会将您当前查看的目录更改为您指定的目录

您可以cd C:\更改为C.


-3

您想使用PROMPT命令,很可能您正在寻找prompt $PWindows中正常提示的位置prompt $P$G

C:\> help prompt

Changes the cmd.exe command prompt.

PROMPT [text]

  text    Specifies a new command prompt.

Prompt can be made up of normal characters and the following special
codes:

  $A   & (Ampersand)
  $B   | (pipe)   
  $C   ( (Left parenthesis)   
  $D   Current date   
  $E   Escape code (ASCII code 27)   
  $F   ) (Right parenthesis)   
  $G   > (greater-than sign)   
  $H   Backspace (erases previous character)   
  $L   < (less-than sign)   
  $N   Current drive  
  $P   Current drive and path   
  $Q   = (equal sign)   
  $S     (space)  
  $T   Current time   
  $V   Windows version number   
  $_   Carriage return and linefeed   
  $$   $ (dollar sign)

If Command Extensions are enabled the PROMPT command supports the
following additional formatting characters:

  $+   zero or more plus sign (+) characters depending upon the
       depth of the PUSHD directory stack, one character for each
       level pushed.

  $M   Displays the remote name associated with the current drive
       letter or the empty string if current drive is not a network
       drive.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.