LoginSignup
16
13

More than 5 years have passed since last update.

Windowsで"."から始まるフォルダ/ファイルを作る

Last updated at Posted at 2017-09-24

Windowsのエクスプローラーで"."から始まるフォルダ/ファイルを作ろうとして毎回エラーになるので、解決策をメモしておきます
error.png

.からはじまるフォルダ

"C:\tmp\"フォルダに".ssh"フォルダを作る場合

  1. コマンドプロンプトを開く
  2. 作成したいディレクトリに移動する
  3. 以下のコマンドを実行する
C:\tmp\> mkdir .ssh

.からはじまるファイル

"C:\tmp\"フォルダに".gitignore"ファイルを作る場合

  1. "C:\tmp\"フォルダに何か適当なファイルを作る(ここでは"nodot"とする)
  2. コマンドプロンプトを開く
  3. 作成したいディレクトリに移動する
  4. 以下のコマンドを実行する
C:\tmp\> move nodot .gitignore

一度作ってしまえば編集はできます

エクスプローラーで作る

エクスプローラーでも作れるとコメントで教えて頂きました
ありがとうございます

ファイル/フォルダ両方で使えます

  1. ファイル名の末尾に"."をつける

exploler_before.png

確定すると末尾の"."は消えます
exploler_after.png

16
13
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
13