質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
コマンドプロンプト

コマンドプロンプト(cmd.exe)はMicrosoftによって提供されているコマンドラインインタプリタです。OS/2・Windows CE・Windows NTで使用可能です。

Q&A

解決済

1回答

87066閲覧

指定されたパスが見つかりませんと出るのはなぜか。

destrudo

総合スコア143

コマンドプロンプト

コマンドプロンプト(cmd.exe)はMicrosoftによって提供されているコマンドラインインタプリタです。OS/2・Windows CE・Windows NTで使用可能です。

0グッド

1クリップ

投稿2017/05/24 13:33

イメージ説明
指定されたパスが見つかりませんと出るのはなぜなのでしょうか。一つ前に戻るcd -も利きません。cd desktopはできます。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

指定されたパスが見つかりませんと出るのはなぜなのでしょうか。

c:\Users\user直下にcというディレクトリがないからでしょう。
ちなみにcd c:\でcドライブ直下に移動できます。

一つ前に戻るcd -も利きません。

cdにはそのような機能はないようです。

bat

1c:\>cd /? 2Displays the name of or changes the current directory. 3 4CHDIR [/D] [drive:][path] 5CHDIR [..] 6CD [/D] [drive:][path] 7CD [..] 8 9 .. Specifies that you want to change to the parent directory. 10 11Type CD drive: to display the current directory in the specified drive. 12Type CD without parameters to display the current drive and directory. 13 14Use the /D switch to change current drive in addition to changing current 15directory for a drive. 16 17If Command Extensions are enabled CHDIR changes as follows: 18 19The current directory string is converted to use the same case as 20the on disk names. So CD C:\TEMP would actually set the current 21directory to C:\Temp if that is the case on disk. 22 23CHDIR command does not treat spaces as delimiters, so it is possible to 24CD into a subdirectory name that contains a space without surrounding 25the name with quotes. For example: 26 27 cd \winnt\profiles\username\programs\start menu 28 29is the same as: 30 31 cd "\winnt\profiles\username\programs\start menu" 32 33which is what you would have to type if extensions were disabled. 34c:\>

投稿2017/05/24 13:48

can110

総合スコア38266

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

destrudo

2017/05/24 13:52

ありがとうございます。gitbashを最近使っていたので、コマンドプロンプトと混同していました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問